SurfaceGui money not working


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.

The local script:

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

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

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