SurfaceGui money not working

Hey!

Am currently working on a game that will show your money from the leaderboard in surface gui but, it won’t work.


There is a local script parented to a textlabel.
Capture343

The local script:

local player = game.Players.LocalPlayer
local stats = player:WaitForChild("leaderstats")
local cash = stats:WaitForChild("Money")
script.Parent.Text = "Money: "..cash.Value

while wait() do
	script.Parent.Text = "Money: "..cash.Value
end

Help is appreciated! :happy2:

Put SurfaceGUI on StarterGui and put adornee of the surfaceGUI to the part

1 Like

Thank very much. It worked! :happy1:

No problem :wink: Good programming

1 Like