Advertisement
Honansik

Clone Tycoon 2 FE Script [Set Everyone On Leaderboard To Any Number You Want]

Dec 10th, 2021
1,766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. local setValueForAllPlayers = 6666
  2.  
  3. local Players = game:GetService('Players')
  4. local StarterGui = game:GetService("StarterGui")
  5.  
  6. local GetPlayers = Players:GetPlayers()
  7.  
  8. local Set = {
  9.     ['leaderstats'] = {"Cash", "Gems"},
  10.     ['Inventory'] = {"Coal", "Diamonds", "Gold", "Iron", "Stone"},
  11. }
  12.  
  13. for index, player in pairs(GetPlayers) do
  14.     local yes, no = pcall(function()
  15.         for i, v in pairs(Set) do
  16.             for e, stat in pairs(v) do
  17.                 game.Workspace.Events.Potions.PotionGui:FireServer(player[i][stat], player[i][stat].Value, "")
  18.                 game.Workspace.Events.Potions.PotionGui:FireServer(player[i][stat], setValueForAllPlayers * -1, "")
  19.             end
  20.         end
  21.     end)
  22.  
  23.     if not yes then
  24.         StarterGui:SetCore("SendNotification", {
  25.             Title = "What a nut!",
  26.             Text = string.format("Something happened, but we don't know why.\n%s", no),
  27.             Duration = 5,
  28.         })
  29.     end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement