I want to have the value of the player's gold within a GUI and this is what I have so far:
Local Script within GUI:
local player = script.Parent.Parent.Parent.Parent
local Gold = player.leaderstats.Gold
script.Parent.Text = Gold.Value
Gold.Changed:Connect(function()
script.Parent.Text = Gold.Value
end)
Is this good practice and will exploiters be able to change their gold value somehow with this? Thank you.

1 comment
This is good practice. just change your player variable to game:GetService("Players").LocalPlayer and you'll probably be fine.