Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there something wrong with this regeneration script? It looks perfect but won't work.

Asked by 9 years ago
P = script.Parent.Parent

while true do
    wait(1)
 P.leaderstats.MagicEnergy.Value + P.leaderstats.MaxMagicEnergy.Value / 25 * 100 + 500)

    end
end

1 answer

Log in to vote
0
Answered by 9 years ago
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.

Ad

Answer this question