Reset: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
>Flurite me spawted extra period. >:) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
game.Players.LocalPlayer.Character.Humanoid.Name = "NewHumanoid" -- Rename to your desire. | game.Players.LocalPlayer.Character.Humanoid.Name = "NewHumanoid" -- Rename to your desire. | ||
}} | }} | ||
* Quickly change the [[Humanoid]]'s Health from 0 to 100 and call MakeJoints on the [[character]] when it's about to die. This <em>should</em> prevent dying at all. It is suggested you use the Humanoid's [[Died (Event)|Died]] event | * Quickly change the [[Humanoid]]'s Health from 0 to 100 and call MakeJoints on the [[character]] when it's about to die. This <em>should</em> prevent dying at all. It is suggested you use the Humanoid's [[Died (Event)|Died]] event. | ||
[[File:SettingsButton_dn.png|thumb|Menu Button]] | [[File:SettingsButton_dn.png|thumb|Menu Button]] |
Latest revision as of 00:21, 23 March 2012
Resetting is part of ROBLOX's terminology. Resetting in ROBLOX can refer to many things. You can reset a place to a default baseplate. You can reset studio mode after clicking play. But generally, resetting refers to killing your player so you respawn. To do so, click the menu button in a ROBLOX game. Then, proceed to click the reset button, then confirm. This feature is built into all ROBLOX places, and for developers who don't want players to randomly die, can be extremely annoying. There are several ways to prevent it from working, even though doing so is strongly not recommended and it is recommended to instead try to adapt your game.
- Change the Humanoid's name in the player's character. This may, however, break some scripts in your game, so be careful. Use the below script in a LocalScript to achieve this:
-- Use in a local script --
repeat wait() until game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") --Wait until the player's character loads.
game.Players.LocalPlayer.Character.Humanoid.Name = "NewHumanoid" -- Rename to your desire.
- Quickly change the Humanoid's Health from 0 to 100 and call MakeJoints on the character when it's about to die. This should prevent dying at all. It is suggested you use the Humanoid's Died event.