local plr = game.Players.LocalPlayer
block = Instance.new("Part")
block.CFrame = CFrame.new(plr.Character.Head.Position)
--yes
COMMUNITY QUESTION
How to Spawn block on player head?
1 answer
You were pretty close, but block.CFrame = CFrame.new(plr.Character.Head.Position) doesn't work because those are two incompatible values. Instead all you have to do is take the X, Y, and Z values of the head and use those instead.
Also, when spawning something using Instance.new don't forget to set its Parent!
local plr = game.Players.LocalPlayer
block = Instance.new("Part")
block.Parent = game.Workspace
block.CFrame = CFrame.new(plr.Character.Head.Position.X, plr.Character.Head.Position.Y, plr.Character.Head.Position.Z)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
fix plz
What do you mean by spawn block?
Spawn a part
On a players head?
your nearly there, just add on line 3 + Vector3(0, 3, 0) -- Change y position