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?
Try this out, I think .Changed is a better way of doing what you're looking for. Idk if this is a local script or not, but just a heads up a remote event might be needed.
local XP = script.Parent.Parent.Parent.Parent.Parent.Statistic:WaitForChild('XP') local XPRequired = script.Parent.Parent.Parent.Parent.Parent.Statistic:WaitForChild('XPNeeded') local ExperienceText = script.Parent game.Players.PlayerAdded:Connect(function() ExperienceText.Text = XP.Value..'/'..XPRequired.Value end) XP.Changed:Connect(function() ExperienceText.Text = XP.Value..'/'..XPRequired.Value end)