local XP = script.Parent.Parent.Parent.Parent.Parent.Statistic:WaitForChild('XP').Value
local XPRequired = script.Parent.Parent.Parent.Parent.Parent.Statistic:WaitForChild('XPNeeded').Value
ExperienceText = script.Parent
while true do
ExperienceText.Text = XP..'/'..XPRequired
wait()
end
the text should update every singel second but its not updating
How do i know that its not updating?
because I used a hit part that gives you XP on each touch and the text is still the same
any help?

16 comments
it keeps showing 18:44:58.271 - Players.Halmuni.PlayerGui.XpBar.Frame.ExpText.x:7: attempt to index field 'Value' (a number value)
Ok let me edit it
Try this now, you should not use .Value in a variable.
Try adding "ExperienceText.Text = tostring(XP.Value.."/"..XPRequired.Value)". Don't know if it would work but yeah.
It does not show output and it doesen't do anything to the text meaning when I join the game It shows label also I tested if the values would change if i touched a XP giving brick it did not
Ok I removed the player added and it worked
but then when I join a game and I dont change the value it dosent work
how do you mean it doesnt work? like it wont show up unless its changed?
yeah
its sloppy but try what i just put, it should work.
Do I remove the player Added since it works withot player added?
yes. see if it works fine without that, if it doesnt, we'll do a playeradded function and then just have it set the experience counter up, and then do the change seperately.
it no work
ok lol, try that. we'll get it.
I got it to work thanks
great! please accept answer.