Can someone tell me how i can give someONE coins? Not everyone but 1 person coins of my selection. Also, can someone show me how to make a level up gui and how i can change the required number of exp you need for the next level. And last thing, how can i reward someone coins when they level up? It would be such an honor if someone would answer. Thanks
Use an algorithm to figure out how much xp is required for a level
use a Changed event on the level to give people coins when they level up
i.e.
xp.Changed:connect(function()
if xp.Value >= level.Value * 150 then -- the algorithm
wait()
xp.Value = 0
level.Value = level.Value + 1
end
end)
level.Changed:connect(function()
Coins.Value = Coins.Value + 5
end)
This would probably have to be in a localscript to get the player object and the leaderstats inside it |