Cash UI system doesn't change text

So, main idea is that once player gets salary (being changed at the localplayer value), for some reason doesn’t change it at the UI text.

local player = game:GetService("Players").LocalPlayer

local marks = player.leaderstats.Marks.Value
local mark = script.Parent

while wait(0.1) do
	mark.Text = marks
end

The text that your scripting is changing is a one-time value of Marks

Here is the fixed script

local player = game:GetService("Players").LocalPlayer

local marks = player.leaderstats.Marks
local mark = script.Parent

while wait(0.1) do
	mark.Text = marks.Value
end
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.