I have made a gui for a simulator backpack (just like the one in mining sim and bubblegum sim) and I don't know how to make the script for it, but I have made an attempt. Can somebody please help me?
Edit: I want this script to update the gui every wait() so that it changes to the "cs / 10"
script directory is in game.StarterGui.Backpack.Frame.TextLabel
local plr = game.Players.LocalPlayer
local cs = plr.leaderstats.Chemicals.Value
while wait() do
script.Parent.Text = "??"..cs.."/ 10"
end

6 comments
Remember to use wait wisely. ;) https://blog.roblox.com/2012/05/using-wait-wisely/
but the default wait is 0.0291 and thats what i need
In order to do this we need to weld some parts to the characters torso. What I can tell you how to do this is by creating a model and then cloning and welding it onto the player once the player's character is added. However you have to script this yourself. I've done this before and I can verify that this method works.
I recommend using the
Changedevent instead; with a loop, it's going to keep firing over and over again constantly, like you said, every 1/30th of a second, vs where theChangedevent will fire every time the value changes.wdym weld? did u accidentally click on the wrong question? this is about backpack gui, like bubblegum sim
I recommend using events instead of an infinite loop