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
 

what does this error mean?

Previous Thread :: Next Thread 
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Dec 2016 05:57 PM
Maximum event re-entrancy depth exceeded for NumberValue.Changed


/????


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
17 Dec 2016 05:58 PM
It's changing too much so ROBLOX will stop detecting the event.
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Dec 2016 06:00 PM
Like too many scripts are waiting for it to change? Changed:connect(function(NewValue)

or its changing values at an un keep able speed?


Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Dec 2016 06:03 PM
Could this be happening because the gui does math.random on click?

skinval.Value = math.random(1,4)


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Dec 2016 06:04 PM
something is being fired too many times.


Report Abuse
icelys is not online. icelys
Joined: 13 Mar 2016
Total Posts: 49
17 Dec 2016 06:04 PM
http://wiki.roblox.com/index.php?title=Lua_errors#Unusual_Error_Messages

Here ya go
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Dec 2016 06:15 PM
@ice

So in my case it'd be this:

skinval.Changed:connect(function(NewValue)
elseif raceval.Value == 4 and skinval.Value ~= 1 or raceval.Value == 4 and skinval.Value ~= 2 or raceval.Value == 4 and skinval.Value ~= 3 then
skinval.Value = math.random(1,3)


What would be better to do?


Report Abuse
icelys is not online. icelys
Joined: 13 Mar 2016
Total Posts: 49
17 Dec 2016 06:42 PM
Try this:

local deb = false
skinval.Changed:connect(function(NewValue)

if [your condition] then
if deb then
deb = true
[do stuff...]
deb = false
end
end
end)

Worked for me
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
17 Dec 2016 07:53 PM
It's because when it gets changed, it changes it. And so it detects being changed, and changes again... And again and again and again and again and again an..Maximum event re-entrancy depth exceeded!


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