I've tried this but it didn't work.
while wait(1) do local player = game:GetService("Players").LocalPlayer local humanoid = player.Character.Humanoid if humanoid.Health == 0 then wait(6) mouse.KeyDown:Connect(function(key) if key == "e" then if mouse.Target then humanoidRoot.CFrame = CFrame.new(mouse.Hit.x,mouse.Hit.y + 5,mouse.Hit.z) end end end) end end
I would reckon highering the spawn location and putting a block on the spawn location, and the putting:
script.Parent.Touched:Connect(function(hit) -- code here end)