Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How would I make a part automatically weld to the players hand on entry?

Asked by 3 years ago

How would I make it so that the player would have a part welded to their arm all the time?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

you would create a weld when the player joins and have part 0 be part and part 2 be hand in a server script:

game.Players.PlayerAdded:Connect(function(plr)
    local char = game.Workspace:WaitForChild(plr.Name)
    local Weld = Instance.new("Weld")
    Weld.Part0 = char.RightHand
    Weld.Part1 = game.Workspace.Part --make this be the part u want to go there
    Weld.Parent = game.Workspace.Part--make this be the part u want to go there
end)

plz tell me if this didn't work as i quickly whipped it up

Ad

Answer this question