P = script.Parent.Parent while true do wait(1) P.leaderstats.MagicEnergy.Value + P.leaderstats.MaxMagicEnergy.Value / 25 * 100 + 500) end end
P = script.Parent.Parent while true do wait(1) P.leaderstats.MagicEnergy.Value = P.leaderstats.MaxMagicEnergy.Value + P.leaderstats.MaxMagicEnergy.Value / 25 * 100 + 500) end end
The value needs to equal what you want it to be.