im making a simulator game and i want a textlabel to display IntValue's value it does actually display it but when it changes the value doesnt update i really need help and sorry if i made a dumb mistake im really new to scripting Script:
script.Parent.Text = game.StarterPack.Pizza.FoodCount.Value
local Player = game.Players.LocalPlayer local Backpack = Player:WaitForChild("Backpack") --tools in StarterPack will be cloned into Player's backpack local Pizza = Backpack:WaitForChild("Pizza") Pizza.FoodCount:GetPropertyChangedSignal("Value"):Connect(function() --this will run everytimes the value is changed script.Parent.Text = Pizza.FoodCount.Value end)
The script must be LocalScript to work with player's GUI.