The one for ServerScriptService is,
game.Players.PlayerAdded:connect(function(Player)
local Data = Instance.new("IntValue",Player)
Data.Name = "Data"
local XP = Instance.new("IntValue",Data)
XP.Name = "XP"
XP.Value = 100
local Level = Instance.new("IntValue",Data)
Level.Name = "Level"
Level.Value = 1
local Tries = Instance.new("IntValue",Data)
Tries.Value = 10
Tries.Name = "Tries"
XP.Changed:connect(function() XPChange(Player,XP,Level) end)
end)
function XPChange(Player,XP,Level)
if XP.Value >= Level.Value*150 then
XP.Value = 0
Level.Value = Level.Value+ 1
end
end
And the one for the level up GUI is,
while true do
wait()
local XP = script.Parent.Parent.Parent.Parent.Parent.Data.XP.Value
local MaxXP = script.Parent.Parent.Parent.Parent.Parent.Data.Level.Value*150
local math = ( XP / MaxXP )
script.Parent:TweenSize(UDim2.new(math,0,1,0),"Out","Quad",.25)
end

2 comments
Are you seriously going to just dump your code here without explaining your problem?
When I change the xp, the bar doesn't move.