I'm trying to weld part0 to the characters head but i can't seem to get the character
function onClicked()
local Character = Player.Character or Player.CharacterAdded:Wait()
local w = Instance.new("Weld")
w.Parent = script.Parent
w.Part1 = script.Parent
w.Part0 = Player.Head
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
What is the rest of the script and where is it located?
thats all the script and it's inside a dummys humanoid root part