I have a script where it welds a certain part to the front of the player. But it isnt working. Can someone help me?
local module = {}
function module.gui(plr)
local player = game.Players:WaitForChild(plr)
script.Part.Position = CFrame.new(player.Character.Head.Position + Vector3.new(0, 10, 0))
local weld = Instance.new("WeldConstraint", script.Part)
weld.Part0 = script.Part
weld.Part1 = player.Character.Head
end
return module
