• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


12 Jan, 2025

Updated at 26 Jan, 2025

How to Anchor Players HumanoidRootPart

  1. I want to anchor the root part of the players character when they join.

  2. I can’t find out why it’s not Anchoring and it’s giving me no errors, so I’m just really confused on why it isn’t working.

  3. I’ve tried to switch it from a local script into one of my server scripts, but it still didn’t work.

I just started scripting, and it would really mean a lot if I could get some help, and know what I should do next time, Thanks!

local Sword = RS.Sword

plr.PlayerAdded:Connect(function(plr)
	
	plr.CharacterAdded:Connect(function(char)
		
		Weld.Parent = char.Torso
		Weld.Part0 = char.Torso
		Weld.Part1 = Sword
		Sword.Parent = char
		char:WaitForChild("HumanoidRootPart").Anchored = true
		
		if game.StarterGui.StartScreen.BlackBox.TextButton.MouseButton1Click then
			wait(3)
			char.HumanoidRootPart.Anchored = false
		end
	end)
end)

P.S (I already have the sword welded; all I need is help with anchoring the root part of the character.)

2 posts - 2 participants

Read full topic