This is my code:
local am = player:WaitForChild("CashRecieved").Value
script.Parent.Text = "$"..player:WaitForChild("CashRecieved").Value
player:WaitForChild("CashRecieved").Changed:Connect(function()
script.Parent.Text = "$"..player:WaitForChild("CashRecieved").Value
if player:WaitForChild("CashRecieved").Value == 1000 then
script.Parent.Text = "1,000"
else if player:WaitForChild("CashRecieved").Value == 1100 then
script.Parent.Text = "1,100"
elseif player:WaitForChild("CashRecieved").Value == 1200 then
script.Parent.Text = "1,200"
elseif player:WaitForChild("CashRecieved").Value == 1300 then
script.Parent.Text = "1,300"
else if player:WaitForChild("CashRecieved").Value == 1400 then
script.Parent.Text = "1,400"
elseif player:WaitForChild("CashRecieved").Value == 1500 then
script.Parent.Text = "1,500"
elseif player:WaitForChild("CashRecieved").Value == 1600 then
script.Parent.Text = "1,600"
else if player:WaitForChild("CashRecieved").Value == 1700 then
script.Parent.Text = "1,700"
elseif player:WaitForChild("CashRecieved").Value == 1800 then
script.Parent.Text = "1,800"
elseif player:WaitForChild("CashRecieved").Value == 1900 then
script.Parent.Text = "1,900"
else if player:WaitForChild("CashRecieved").Value == 2000 then
script.Parent.Text = "2,000"
elseif player:WaitForChild("CashRecieved").Value == 2100 then
script.Parent.Text = "2,100"
elseif player:WaitForChild("CashRecieved").Value == 2200 then
script.Parent.Text = "2,200"
else if player:WaitForChild("CashRecieved").Value == 2300 then
script.Parent.Text = "2,300"
elseif player:WaitForChild("CashRecieved").Value == 2400 then
script.Parent.Text = "2,400"
elseif player:WaitForChild("CashRecieved").Value == 2500 then
script.Parent.Text = "2,500"
else if player:WaitForChild("CashRecieved").Value == 2600 then
script.Parent.Text = "2,600"
elseif player:WaitForChild("CashRecieved").Value == 2700 then
script.Parent.Text = "2,700"
elseif player:WaitForChild("CashRecieved").Value == 2800 then
script.Parent.Text = "2,800"
elseif player:WaitForChild("CashRecieved").Value == 2900 then
script.Parent.Text = "2,900"
elseif player:WaitForChild("CashRecieved").Value == 3000 then
script.Parent.Text = "3,000"
end
end
end
end
end
end
end
end)

5 comments
you can use a for loop btw is this not the full code bc player is undefined
It was defined it was the only line i forgot to copy
I know this is not what the comments are for, but how can i send you a message via roblox. You account's settings dosent let me.
Send a friend request to my alt "thatdevlife" and message me there
i sent you a friend request