Issue has been solved!
Thanks.
Issue has been solved!
Thanks.
Because you’re updating the wrong value, you should be updating the value that’s inside the player, not the StarterGui
:
local xpCounter = script.Parent -- I put the script under the textbox.
local xpValue = xpCounter:WaitForChild("Value")
local xpNumber = xpValue.Value
while true do
wait(.5)
xpValue.Value = xpValue.Value + 1
xpCounter.Text = xpValue.Value
end
How StarterGui
works is that when a player joins the GUIs inside the StarterGui
are cloned to Player.PlayerGui
which is the GUIs that client use.