I’ve tried many times to figure it out and seem’s to fail, they’ve worked but then end up failing.
My script is something like this.
game.Players.PlayerAdded:Connect(function(Player)
while wait() do
local MaxProgress = Player.PlayerGui.Value
script.Parent.Secondary.Text = math.floor((Player.leaderstats.Progress.Value/MaxProgress.Value) * 100) .."%"
end)
I’ve tried to make it connect to the leaderstat’s and make it change the text everytime the xp is added and change to (number that depends on how much value needed to be complete)% done.
If you need a clear understanding let me know, but I don’t seem to know much about how to get a server script into leaderstats and the playergui along with changing the billboard gui text above the character’s head after it’s been changed.
game.Players.PlayerAdded:Connect(function(Player)
while wait() do
local MaxProgress = Player.PlayerGui.Value
script.Parent.Secondary.Text = math.floor((Player.leaderstats.Progress.Value/MaxProgress.Value) * 100) .."%"
end
end)
Okay so I’ve changed it to what you’ve done but added a few changes such as putting the MaxProgress value into replicated storage, since it won’t locate in PlayerGui anymore, but. I don’t know why it wont update the text itself.
Currently it’s actually been the same for everything sept for the change of the value to replicated storage, sorry if this doesn’t explain much It’s been breaking alot for unknown reason’s, even if I reverted some script’s.
Well did you change the MaxProgress variable to the value in ReplicatedStore? If you didnt be sure to do that also can you possibly check the output for any errors?