local player = game.Players.LocalPlayer
local moneyB = 1
player:WaitForChild("leaderstats").Money.Changed:Connect(function()
if player.leaderstats.Money.Value > moneyB then
repeat
moneyB = moneyB + 1
wait(0.1)
until player.leaderstats.Money.Value == moneyB
end
script.Parent.TextLabel.Text = "$"..moneyB.Value
end)
local function GetChanged(Val)
repeat
moneyB += 1
script.Parent.TextLabel.Text = moneyB
wait(.1)
until moneyB == Val.Value
return true
end
GetChanged(player:WaitForChild("leaderstats").Money) --// this is because when the player load their stats
--//
player:WaitForChild("leaderstats").Money:GetPropertyChangedSignal("Value"):Connect(function()
GetChanged(player:WaitForChild("leaderstats").Money)
--[[
script.Parent.TextLabel.Text = "$"..player:WaitForChild("leaderstats").Money.Value
]]
end)
local player = game.Players.LocalPlayer
local moneyB = 1
if player.leaderstats.Money.Value > moneyB then
repeat
moneyB = moneyB + 1
wait(0.1)
until player.leaderstats.Money.Value == moneyB
end
script.Parent.TextLabel.Text = "$"..moneyB.Value