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. |