Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Super Power Fighting Simulator
- -- Auto Farm Halloween Token and Gems
- -- made by SHAD_vm#5041
- --You can place this script in the autoexecute folder for afk/auto farming
- --//Settings//--
- _G.Enabled = true
- local TPTime = 5 -- Put whatever number you want there
- local ScriptLoadWaitTime = 6 -- DO NOT PUT IT LOWER THAN 5 OR IMA SLAP U
- --//Script//--
- local WaitForTheDamGui= game:WaitForChild("StarterGui")
- wait(ScriptLoadWaitTime)
- local startergui = game:GetService("StarterGui")
- startergui:SetCore("SendNotification",{
- Title = "WAIT";
- Text = "Just sit back and watch. Make Sure to give the script a few seconds to work!";
- Duration = 5;
- })
- function AntiAfkIg()
- local vu = game:GetService("VirtualUser")
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- wait(1)
- vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- end)
- end
- local PlaceID = game.PlaceId
- local AllIDs = {}
- local foundAnything = ""
- local actualHour = os.date("!*t").hour
- local Deleted = false
- local File = pcall(function()
- AllIDs = game:GetService('HttpService'):JSONDecode(readfile("ServersAlreadyJoined.json"))
- end)
- if not File then
- table.insert(AllIDs, actualHour)
- writefile("ServersAlreadyJoined.json", game:GetService('HttpService'):JSONEncode(AllIDs))
- end
- function TPStuffLol()
- local Site;
- if foundAnything == "" then
- Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
- else
- Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
- end
- local ID = ""
- if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
- foundAnything = Site.nextPageCursor
- end
- local num = 0;
- for i,v in pairs(Site.data) do
- local Possible = true
- ID = tostring(v.id)
- if tonumber(v.maxPlayers) > tonumber(v.playing) then
- for _,Existing in pairs(AllIDs) do
- if num ~= 0 then
- if ID == tostring(Existing) then
- Possible = false
- end
- else
- if tonumber(actualHour) ~= tonumber(Existing) then
- local delFile = pcall(function()
- delfile("ServersAlreadyJoined.json")
- AllIDs = {}
- table.insert(AllIDs, actualHour)
- end)
- end
- end
- num = num + 1
- end
- if Possible == true then
- table.insert(AllIDs, ID)
- wait()
- pcall(function()
- writefile("ServersAlreadyJoined.json", game:GetService('HttpService'):JSONEncode(AllIDs))
- wait()
- game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
- end)
- wait(4)
- end
- end
- end
- end
- function Teleport()
- while wait() do
- pcall(function()
- TPStuffLol()
- if foundAnything ~= "" then
- TPStuffLol()
- end
- end)
- end
- end
- function TPAuto()
- wait(TPTime)
- Teleport()
- end
- if _G.Enabled == true then
- AntiAfkIg()
- while wait() do
- for i,o_B in pairs(Workspace.EvilPumpkins:GetChildren()) do
- fireclickdetector(o_B.ClickDetector)
- end wait()
- for i,o_X in pairs(Workspace.MiniChests:GetChildren()) do
- fireclickdetector(o_X.ClickDetector)
- end
- TPAuto()
- end
- end
Add Comment
Please, Sign In to add comment