When touching gui my coin gui should go up by 1 not working

image COIN GUI

THE SCRIPT FOR THE PART WHEN TOUCHING
image SERVER SCRIPT SERVICE WITH SCRIPT
image INSIDE THE SERVER SCRIPT SERVICE SCRIPT

You need to write a script that changes the text when the Coins value goes up.

Any ideas. Im not sure how to do that one.

local LocalPlayer = game:GetService("Players").LocalPlayer
LocalPlayer.leaderstats.Coins:GetPropertyChangedSignal("Value"):Connect(function()
    script.Parent.Text = LocalPlayer.leaderstats.Coins.Value
end)

Put this into a LocalScript, and parent the LocalScript to the text label.

1 Like