Categories > Exploiting > Scripts >
Pet Sim X Visual Gem Dupe
Posted
made it cause im bored lol, anyways here it is:
function comma_value(amount)
local formatted = amount
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
if (k == 0) then
break
end
end
return formatted
end
local diamonds = game.Players.LocalPlayer.PlayerGui.Main.Right.Diamonds.Amount
local old = diamonds.Text
local oldNumber = string.gsub(old, ",", "")
local newNumber = oldNumber * 2
local new = comma_value(newNumber)
local newString = tostring(new)
diamonds.Text = newString
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post