of     1   

Lua_Basics
#186270132Monday, March 28, 2016 9:42 PM GMT

Maximum event re-entrancy depth exceeded for IntValue.Changed While entering function defined in script 'ServerScriptService.PointsSystem', line 48 local StartLevelup=150 local Multiply= 1.2 xp.Changed:connect(function() local Level=xp.Parent.Rank if (Level ~=nil) and (xp.Value>= StartLevelup * Multiply) then -- Slow Rise in needed Exp xp.Value = xp.Value-(StartLevelup * Multiply) Level.Value = Level.Value + 1 Level.Parent.Parent.Settings.PresetSpeed.Value = Level.Parent.Parent.Settings.PresetSpeed.Value + 1 Level.Parent.Parent.Settings.PresetHealth.Value = Level.Parent.Parent.Settings.PresetHealth.Value + 1 Multiply=Multiply+.05 end end) Now it all works, just why is it error'ing though, (when they players gets high amounts of Experience, it maxes after 6 loops.
goro7
#186270245Monday, March 28, 2016 9:43 PM GMT

There is a maximum amount of times an event can fire within an amount of time. That error is resulting from that maximum being exceeded.
TimeTicks
#186270280Monday, March 28, 2016 9:43 PM GMT

You are probably doing the loop way too many times in such a small time frame
Lua_Basics
#186270392Monday, March 28, 2016 9:45 PM GMT

Ex..? on how to fix..?
TimeTicks
#186270610Monday, March 28, 2016 9:48 PM GMT

well you shouldn't be running the xp.Changed in a loop for one...
TimeTicks
#186270658Monday, March 28, 2016 9:48 PM GMT

and secondly the xp shouldn't be changing so many times...so change how you earn xp
Lua_Basics
#186270704Monday, March 28, 2016 9:49 PM GMT

its a on a player joined, its server sided... would a wait() fix it..?
goro7
#186270891Monday, March 28, 2016 9:52 PM GMT

Could do wait(), but I would calculate the number of levels that they are going up and the number of XP to get rid of all inside one function so it will only fire once.
Lua_Basics
#186270936Monday, March 28, 2016 9:52 PM GMT

Example, note this is fully server sided.

    of     1