Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Screen GUI Label Text Help?

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)

2 answers

✓ Accepted answer

This is actually not a script problem. Do these instructions

Click on the ScreenGUI and unclick ResetOnSpawn. Simple

2 comments

0

I agree

0

Thanks

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





5 comments

0

You Tried.

0

im new to scripting

0

No hate man. I was to, Lets get hooked up and I'll teach you. Here's my discord : Devamspion#7812

0

Dosent Work

0

Omg, i really did this lol. Im laughing at how bad this is

This discussion is preserved as it was. New answers, comments, and votes are closed.