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
 

So I have a reset monitor script...

Previous Thread :: Next Thread 
laczka is not online. laczka
Joined: 26 Jan 2015
Total Posts: 258
29 Oct 2016 10:02 PM
I have a reset monitor script, which resides in ServerScriptService. Every time a player re-spawns the reset monitor script is cloned into the player's character model.
The purpose of the reset script is to stop players from being able to reset with the default ROBLOX reset button, here is the code:
script.Parent:FindFirstChild("Humanoid").HealthChanged:connect(function()
if script.Parent:FindFirstChild("Humanoid").Health <= 0 then
script.Parent:FindFirstChild("Humanoid").Health =
script.Parent:FindFirstChild("Humanoid").MaxHealth;
script.Parent:MakeJoints();
end
end)
Of course, when the script is in serverScriptService it is Disabled, but when it is moved into the player's character model it is enabled. This works perfectly in-studio every time you click ROBLOX's reset button in the core gui menu, it does nothing (because health is being restored and joints are being remade to prevent the character from falling apart), however in-game it does not work so well, upon clicking the reset button in-game, the character resets, and joints all fall apart, when the reset monitor script is supposed to stop this from happening. I do not believe filteringEnabled has anything to do with this either, as I simply cloned the reset monitor script (which is a server script) into the player's character. I did a generic for loop on my player model in the workspace to see if the reset monitor script was there, and it was. I also checked and printed out the clone's Disabled property, which returned false meaning it was working, however for some reason it doesn't work in-game. I would greatly appreciate any help.
Report Abuse
laczka is not online. laczka
Joined: 26 Jan 2015
Total Posts: 258
29 Oct 2016 10:22 PM
bump
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
29 Oct 2016 10:24 PM
Rename the player's humanoid to anything other than "Humanoid" and it stops the reset button from working
Report Abuse
spyspace12 is online. spyspace12
Joined: 16 Nov 2012
Total Posts: 615
29 Oct 2016 10:28 PM
When you realize it was so simple XD


R$10,714 -- Too op for me >_>
Report Abuse
laczka is not online. laczka
Joined: 26 Jan 2015
Total Posts: 258
29 Oct 2016 10:35 PM
omg I am such an idiot, thanks xD
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