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
|
  |
| Joined: 26 Jan 2015 |
| Total Posts: 258 |
|
| |
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 |
|
|
| 29 Oct 2016 10:28 PM |
When you realize it was so simple XD
R$10,714 -- Too op for me >_> |
|
|
| Report Abuse |
|
laczka
|
  |
| Joined: 26 Jan 2015 |
| Total Posts: 258 |
|
|
| 29 Oct 2016 10:35 PM |
| omg I am such an idiot, thanks xD |
|
|
| Report Abuse |
|