Hello, Can Anyone Make A Gui Coins 1M When My Leaderstats Is 1000000??? I Already Have The Script But I Dont Know How To Continue It So Can Anyone Help me?? Here Is Script :
while wait(0.1) do if game.Players.LocalPlayer.leaderstats.Coins.Value > 1000 then local shortAmt = tostring(game.Players.LocalPlayer.leaderstats.Coins.Value / 1000) .. "K" script.Parent.Text = " " .. shortAmt else script.Parent.Text = " "..game.Players.LocalPlayer.leaderstats.Coins.Value end end
For Example :
while wait(0.1) do if game.Players.LocalPlayer.leaderstats.Coins.Value > 1000 then local shortAmt = tostring(game.Players.LocalPlayer.leaderstats.Coins.Value / 1000) .. "K" script.Parent.Text = " " .. shortAmt else local shortAmt = tostring(game.Players.LocalPlayer.leaderstats.Coins.Value / 1000000) .. "M" script.Parent.Text = " "..game.Players.LocalPlayer.leaderstats.Coins.Value end end
This should work - put in a local script and then local script inside text label
game:GetService("RunService").Stepped:Connect(function() game:GetService("RunService").Stepped:Wait() if game.Players.LocalPlayer.leaderstats.Coins.Value >= 1000000 then script.Parent.Text = "1M+" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 1000 then script.Parent.Text = "1K+" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 10000 then script.Parent.Text = "10K+" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 100000 then script.Parent.Text = "100K+" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 5000000 then script.Parent.Text = "5M+" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 10000000 then script.Parent.Text = "10M+" else script.Parent.Text = game.Players.LocalPlayer.leaderstats.Coins.Value end end end end end end end)
game:GetService("RunService").Stepped:Connect(function() game:GetService("RunService").Stepped:Wait() if game.Players.LocalPlayer.leaderstats.Coins.Value >=1000 then script.Parent.Text = game.Players.LocalPlayer.leaderstats.Coins.Value:Sub(1,-3).."K" else if game.Players.LocalPlayer.leaderstats.Coins.Value >= 1000000 then script.Parent.Text = game.Players.LocalPlayer.leaderstats.Coins.Value:Sub(1,-6).."M" end end end)