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)
COMMUNITY QUESTION
Welding part to player?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
