P = script.Parent.Parent
while true do
wait(1)
P.leaderstats.MagicEnergy.Value + P.leaderstats.MaxMagicEnergy.Value / 25 * 100 + 500)
end
end
✓ ANSWER ACCEPTED
Is there something wrong with this regeneration script? It looks perfect but won't work.
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
