I've made a script where if the player touches the ground an explosion spawns in his head and he dies. But for some reason it spawns at 0,0,0 not the head position.
local part = script.Parent
part.Touched:connect(function(hit)
local countdown = game.ReplicatedStorage:WaitForChild('Countdown')
local character = hit.Parent
local humanoid = hit.Parent:FindFirstChild('Humanoid')
if humanoid and character and countdown.Value > 1 then
Instance.new('Explosion', character.Head)
humanoid.Health = 0
end
end)

1 comment
Thanks alot! I tried something like that but set the position a line after as a new statement but it ended up not spawning.