generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

No Reset

Previous Thread :: Next Thread 
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
21 Jun 2015 11:56 PM
Where should I parent local scripts if I don't want them to restart when the player dies or resets?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 Jun 2015 11:58 PM
What is the situation in which you wouldn't want them to run again?

I would just say clone the scripts into the player when they join so you dont have to worry about destroying them later after they die..that is if they dont stay in the playergui or wherever
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
21 Jun 2015 11:59 PM
I am making a gui only game, so the player should never die, but if they reset, it restarts the scripts, interrupting the game.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
22 Jun 2015 12:02 AM
Oh. Thats easy. Just rename the humanoid in a local script to prevent them from resetting from the game menu

local player = game.Players.LocalPlayer
local char = player.Character

for i,v in next, char:GetChildren() do
if v:IsA("Humanoid") then
v.Name = "Human"
end
end
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
22 Jun 2015 12:03 AM
Never mind. I figured out how.

Under StarterPlayer there is an instance called "StarterPlayerScripts" in which scripts do not restart when a player dies.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
22 Jun 2015 12:04 AM
Gotcha
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image