Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I weld something to a specific place on the player?

I have here my weld script but It doesn't weld the part to the specific place I want it to. What could I add to my code to make this work?

game.Players.PlayerAdded:Connect(function(Player) -- Player
    Player.CharacterAdded:Connect(function(Char() -- Character
        local Head = Char.Head -- Character's Body Part
        local Part = game.Workspace.Part -- Directory To Part To Weld
        local Weld = Instance.new('Weld', Head) -- Create Weld
        Weld.Part1 = Part
        Weld.Part0 = Head
    end)
end) -- End

2 answers

You could change the position of the part before the weld relative to the head. For example if you want to have the part one stud above the head

Part.Position = Head.Position +Vector3.new(0,1,0)

1 comment

0

That didn't work for me, could you expand on your script?

This discussion is preserved as it was. New answers, comments, and votes are closed.