local hum = script.Parent:WaitForChild("Humanoid")
hum.Died:Connect(function()
wait(game.Players.RespawnTime + 0.3)
local humroot = script.Parent:WaitForChild("HumanoidRootPart")
local spawns = game.Workspace.Spawns:GetChildren()
humroot.CFrame = CFrame.new(spawns[math.random(1, #spawns)].Position + Vector3.new(0, 10, 0))
end)
COMMUNITY QUESTION
I was trying to make a respawn teleport for my game, but it didn't work. Any suggestions?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
