I want to anchor the root part of the players character when they join.
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.
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