Script goes fine, but when player resets or respawns the value goes back to 0. Any help or suggestions?
[Local Script in screen GUI inside text label]
local player = game.Players.LocalPlayer local crops = player.Inventory:WaitForChild("Crops") crops:GetPropertyChangedSignal("Value"):Connect(function() script.Parent.Text = crops.Value end)
This is actually not a script problem. Do these instructions
Click on the ScreenGUI and unclick ResetOnSpawn. Simple
Maybe a while true do loop
local player = game.Player local crops = player.Inventory:WaitForChild("Crops") function Update() script.Parent.Text = crops.Value end while true do Update() end