I am trying to make an obby that autosaves on Roblox, I have a script that makes it autosave. For some reason, once in a while that script will spawn you at level 1 rather than on your current level. To fix this you need to reset character (then it tp's you to your correct level). I am trying to make a script that will just auto kill you so that you don't need to reset. Anybody know how? Currently I have this, but it doesn't work properly:
game.Players.PlayerAdded:connect(function(player) --waits for player player.CharacterAdded:connect(function(char) wait() --waits to kill char:WaitForChild("ForceField"):Destroy()--destroys force field char:WaitForChild("Humanoid").Health=0 --sets health to 0 end) end)
