So Im scripting a level system and Im a bit rusty after not scripting for a while by a while I mean A WHILE.... but anyways here is my script
wait()
local Player = game.Players.LocalPlayer
while true do
wait()
local sec = (Player.Data.XP1.Value / 1000)
if script.Parent.Size.X.Scale > 0.95 then
while script.Parent.Size.X.Scale > 0.95 do
wait(0.2)
if sec >= 75 then
sec = 75
Player.Data.XP2.Value = Player.Data.XP2.Value + 75
script.Parent.Size = script.Parent.Size + UDim2.new(0.01,0,0,0)
Player.Data.XP1.Value = 0
end
end
end
end
what im basically trying to make it do is make the bar increase after he/she gets an increase on there XP value
HELP ME SENPAI XOXO kawaiiiiiiiiiiii |