I have a very simple level up script and when a players EXP value hits a certain point its supposed to add a point to the level script but it doesnt? Nor does it error.
Does anyone know why?
Heres the script, its very simple just if a int value reaches a certain point then it level you up, very veryyy simple
local ReplicatedStorage = game:GetService("ReplicatedStorage")
game.Players.PlayerAdded:connect(function(Player)
local ExperiencePoints = ReplicatedStorage.DataFile:WaitForChild(Player.Name).ExperiencePoints
local PlayerLevel = ReplicatedStorage.DataFile:WaitForChild(Player.Name).PlayerLevel
while true do
if ExperiencePoints.Value == "2500" then
print("Level Up")
PlayerLevel.Value = PlayerLevel.Value + 1
end
wait()
end
end)
Its a script inside ServerScriptService incase you are wondering, anyhow have a good day and Merry Christmas!
