So I've made this script:
script.Parent.Touched:connect(function(part)
if part.Parent and game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then
local player = game:GetService('Players'):GetPlayerFromCharacter(part.Parent)
if player:GetRankInGroup(3200799) < 300 then
local humanoid = part.Parent:FindFirstChild("Humanoid")
humanoid.Health = 0
end
end
end)
but I want the player to respawn instantly, how do I do that?

2 comments
http://wiki.roblox.com/index.php?title=API:Class/Player/LoadCharacter
listen to the died event (from humanoid), set characterautoloads (option in players) to false, and do player:LoadCharacter()