We need a script that will teleport the player every time he dies. Can this be done? How?
This should work:
local tp = game.Workspace.teleport -- Where your teleport point is. game.Players.ChildAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character:WaitForChild("Humanoid").Died:Connect(function() character:MoveTo(tp.Position) end) end) end)
-- you need to get humanoid of died player first -- teleport is point where's you want your player teleport to teleport = game.Workspace.teleport humanoid.Died:Connect(function() wait(5) -- wait untill player reset humanoid.Parent.HumanoidRootPart.CFrame = teleport.CFrame end)
Closed as Not Constructive by ScuffedAI and Ziffixture
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?