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

Welding part to player?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago
player = game.Players.LocalPlayer
Points = player.leaderstats.Points
script.Parent.MouseButton1Click:connect(function()
    if Points.Value > 250 then
        local Pet1 = game.Lighting.Pet1:Clone()
        Pet1.Parent = player.Character.Head
        local weld = Instance.new("Weld", player.Character.Name)
        local Head = player.Character.Name

        --How do I weld the Pet1 to the players head?



    end
end)

1 answer

Log in to vote
1
Answered by 8 years ago
player = game.Players.LocalPlayer
Points = player.leaderstats.Points
script.Parent.MouseButton1Click:connect(function()
    if Points.Value > 250 then
        local Pet1 = game.Lighting.Pet1:Clone()
        Pet1.Parent = player.Character.Head
        local weld = Instance.new("Weld", player.Character)--Why are you adding player.Character.Name when you simple just put player.Character.
        weld.Part1 = player.Character.Head
    weld.Part0 = weld

    end
end)
Ad

Answer this question