So I want to reset the player's character automatically as soon he/she enters the game. How can I do that? What should I put in the script that does that?
Hmm, I'd probly do this (for a localscript);
wait(0) --Waits 0 seconds before script starts repeat wait(0)until game.Players.LocalPlayer --Keeps waiting until LocalPlayer if game.Players.LocalPlayer:FindFirstChild("RespawnedAlready")then --If script finds RespawnedAlready within LocalPlayer then script:Destroy() --Destroys script else --Else if didn't Instance.new("BoolValue",game.Players.LocalPlayer).Name = "RespawnedAlready" --Makes the Value for RespawnedAlready game.Players.LocalPlayer:LoadCharacter() --Respawns the LocalPlayer end --The end for the 'if' statement
Hope this helped!
Use as a script in workspace rather than a local script.
game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.Character plr.Character:BreakJoints() end)