I want a brick to welded to a players head 5 studs in front of the player's head. What am i doing wrong?
This is my current script. Nothing happens when i run it.
local w = Instance.new("ManualWeld")
local head = game.Players.LocalPlayer.Character:WaitForChild("Head")
w.Part0 = head
w.Part1 = Instance.new("Part" ,game.Workspace)
w.C0 = CFrame.new(0, 0, 0) * CFrame.new(0, 0, -5 ) * CFrame.fromEulerAnglesXYZ(0,0,0) --first CFrame is part0 second CFrame is part1 third CFrame is rotation
thanks for your help.

1 comment
Try doing just Weld (Instance.new("Weld")), and you can also just do CFrame.Angles instead of CFrame.fromEulerAnglesXYZ