Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
- local w = library:CreateWindow("PetBattleSim") -- Creates the window
- local b = w:CreateFolder("Eggs 1x") -- Creates the folder(U will put here your buttons,etc)
- b:Toggle("Forest",function(boolA)
- shared.toggleA = boolA
- end)
- spawn(function()
- while wait() do
- if shared.toggleA then
- local oh1 = "BuyEgg"
- local oh2 = "ForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Arctic",function(boolB)
- shared.toggleB = boolB
- end)
- spawn(function()
- while wait() do
- if shared.toggleB then
- local oh1 = "BuyEgg"
- local oh2 = "ArcticEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Desert",function(boolC)
- shared.toggleC = boolC
- end)
- spawn(function()
- while wait() do
- if shared.toggleC then
- local oh1 = "BuyEgg"
- local oh2 = "DesertEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Forest",function(boolD)
- shared.toggleD = boolD
- end)
- spawn(function()
- while wait() do
- if shared.toggleD then
- local oh1 = "BuyEgg"
- local oh2 = "ForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Aquatic",function(boolE)
- shared.toggleE = boolE
- end)
- spawn(function()
- while wait() do
- if shared.toggleE then
- local oh1 = "BuyEgg"
- local oh2 = "AquaticEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Volcano",function(boolF)
- shared.toggleF = boolF
- end)
- spawn(function()
- while wait() do
- if shared.toggleF then
- local oh1 = "BuyEgg"
- local oh2 = "VolcanoEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("MagicForest",function(boolG)
- shared.toggleG = boolG
- end)
- spawn(function()
- while wait() do
- if shared.toggleG then
- local oh1 = "BuyEgg"
- local oh2 = "MagicForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Beach",function(boolH)
- shared.toggleH = boolH
- end)
- spawn(function()
- while wait() do
- if shared.toggleH then
- local oh1 = "BuyEgg"
- local oh2 = "BeachEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- --===============================================================================================================================
- local b = w:CreateFolder("Eggs 3x") -- Creates the folder(U will put here your buttons,etc)
- b:Toggle("Forest",function(bool1)
- shared.toggle1 = bool1
- end)
- spawn(function()
- while wait() do
- if shared.toggle1 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "ForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Arctic",function(bool2)
- shared.toggle2 = bool2
- end)
- spawn(function()
- while wait() do
- if shared.toggle2 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "ArcticEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Desert",function(bool3)
- shared.toggle3 = bool3
- end)
- spawn(function()
- while wait() do
- if shared.toggle3 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "DesertEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Forest",function(bool4)
- shared.toggle4 = bool4
- end)
- spawn(function()
- while wait() do
- if shared.toggle4 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "ForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Aquatic",function(bool5)
- shared.toggle5 = bool5
- end)
- spawn(function()
- while wait() do
- if shared.toggle5 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "AquaticEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Volcano",function(bool6)
- shared.toggle6 = bool6
- end)
- spawn(function()
- while wait() do
- if shared.toggle6 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "VolcanoEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("MagicForest",function(bool7)
- shared.toggle7 = bool7
- end)
- spawn(function()
- while wait() do
- if shared.toggle7 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "MagicForestEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Beach",function(bool8)
- shared.toggle8 = bool8
- end)
- spawn(function()
- while wait() do
- if shared.toggle8 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "BeachEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- local b = w:CreateFolder("Event Eggs") -- Creates the folder(U will put here your buttons,etc)
- b:Toggle("Pumpkin 3x",function(boole1)
- shared.togglee1 = boole1
- end)
- spawn(function()
- while wait() do
- if shared.togglee1 then
- local oh1 = "BuyThreeEggs"
- local oh2 = "PumpkinEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- b:Toggle("Pumpkin 1x",function(boole2)
- shared.togglee2 = boole2
- end)
- spawn(function()
- while wait() do
- if shared.togglee2 then
- local oh1 = "BuyEgg"
- local oh2 = "PumpkinEgg"
- game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
- end
- end
- end)
- local b = w:CreateFolder("Credits") -- Creates the folder(U will put here your buttons,etc)
- b:Toggle("Scripts: Total",function(bool19)
- shared.toggle19 = bool19
- end)
- spawn(function()
- while wait() do
- if shared.toggle19 then
- print("Nub")
- end
- end
- end)
Add Comment
Please, Sign In to add comment