Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

P = script.Parent.Parent

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

	end
end

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.