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 |
|
|
|
| 17 Dec 2016 05:58 PM |
| It's changing too much so ROBLOX will stop detecting the event. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Dec 2016 06:04 PM |
something is being fired too many times.
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|