----script----
game.Players.PlayerAdded:connect(function(plr)
local stats = Instance.new('IntValue', plr)
stats.Name = 'leaderstats'
local experience = Instance.new('IntValue', stats)
experience.Name = 'EXP'
experience.Value = 0
local level = Instance.new('IntValue', stats)
level.Name = 'level'
level.Value = 0
experience.Changed:connect(function()
level.Value = math.floor(experience.Value / 10)
end)
end)
-----this is a local script-----
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild('leaderstats')
local level = leaderstats:WaitForChild('level')
local xp = player:WaitForChild('exp')
local experience
level.Changed:connect(function()
if xp.Value < 10 then
level.Value = 1
end
end
end)
how do i repeat 5 exp value every 10 sec so the player will get 5 exp every 10 sec

1 comment
Yeeey thanky you so if i change wait() i change the duration and if i change + then i change the amount of exp given