local event = game.ReplicatedStorage.TreeCutEvent
local tree = game.Workspace.Tree
local detector = tree.ClickDetector
local resourcevalue = tree.TreeResource.Value
event.OnServerEvent:Connect(function()
resourcevalue = resourcevalue + 1
tree.Transparency = 1
detector.MaxActivationDistance = 0
wait(2)
tree.Transparency = 0
detector.MaxActivationDistance = 32
game.StarterGui.ScreenGui.TextLabel.Text = "Wood - ".. resourcevalue
end)
This is the script that I'm using and it fires and changes the value, but the GUI doesn't change. I assume this is because I should be using game.Players.LocalPlayer.PlayerGui... but I don't know how to implement this.
The goal is once the value changes, that it should change in the TextLabel as well,
any help is appreciated!

2 comments
Yea that will change what a player who has joined the game after the tree has been clicked will see
doesnt work for me