Hello!
I humbly ask, how can I make experience carry over to the next level please?
I tried doing a method:
Stat.Changed:Connect(function(Value)
if Value >= Stat.Parent.Level.Value * 135 and Stat.Parent.Level.Value <= 100 + (Stat.Parent.Refined.Value * 10) then
Stat.Parent.Level.Value = Stat.Parent.Level.Value + 1
Stat.Value = Stat.Value - (Stat.Parent.Level.Value * 135)
print(Stat.Value)
print(Stat.Parent.Level.Value * 135)
print(Stat.Value - (Stat.Parent.Level.Value * 135))
end
end)
What it printed out was:
--The first print is the Stat.Value which is the EXP Value it was set at, im not too sure why it was a negative value though? please can someone help me on how to make the experience carry over to the next level?
Thank you!