Hello!
I've been making an EXP system, with three values (1st value as Exp, 2nd one as Level and 3rd one as MaxExp) and it's not going very smoothly.
Every time I test, the IntValue called "MaxExp" doesn't set to what I intended.
Here's a snippit of my code of Level and MaxExp.
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("IntValue",plr)
leaderstats.Name = "leaderstats"
local money = Instance.new("IntValue",leaderstats)
money.Name = "Credits"
local level = Instance.new("IntValue",leaderstats)
level.Name = "Level"
level.Value = 0
local exp = Instance.new("IntValue",leaderstats)
exp.Name = "Experience"
local maxExp = Instance.new("IntValue",leaderstats)
maxExp.Name = "MaxExp"
maxExp.Value = 100 -- Not setting
end)
Any help please?
P.S, I'm new to the forum, this is my first post.

2 comments
um I think leaderstats is supposed to be a folder and not an intvalue, if that does not work I’ll think of a way
No no, it's working fine, but the value isn't doing anything. I think it may be internet? I'm not entirely sure.