Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Local Variables
- _G.AutoBuySwords = false
- _G.AutoBuyCrystals = false
- _G.AutoSwing = false
- _G.Collect = false
- _G.AutoPlanet = false
- local bestPlanet = "Planet Elemental" -- Always use full name. This is used for the auto-buy thingies since am dumb and can´t make it auto update lol
- local plr = game.Players.LocalPlayer
- local sellareas = game:GetService("Workspace"):WaitForChild("sellAreaCircles")
- local Event = game:GetService("Players").LocalPlayer.saberEvent
- local char = plr.Character or plr.CharacterAdded:wait()
- local hrp = char:WaitForChild("HumanoidRootPart")
- local planets = game:GetService("Workspace").planetOuters
- --// Anti-AFK Kick ig
- local bb=game:service'VirtualUser'
- game:service'Players'.LocalPlayer.Idled:connect(function()
- bb:CaptureController()
- bb:ClickButton2(Vector2.new())
- end)
- --// Set-Ups
- local PLANETTTS = coroutine.wrap(function()
- while wait(0.4) do
- if _G.AutoPlanet == true then
- for i, v in pairs(planets:GetDescendants()) do
- if v:IsA("BasePart") and v.Name == "centerPart" then
- if not plr:WaitForChild("foundPlanets"):FindFirstChild(v.Parent.Name) then
- hrp.CFrame = v.CFrame
- end
- end
- end
- end
- end
- end)
- PLANETTTS()
- local swinging = coroutine.wrap(function()
- while wait() do
- if _G.AutoSwing == true then
- local swing = "swingBlade"
- Event:FireServer(swing)
- end
- end
- end)
- swinging()
- local buysword = coroutine.wrap(function()
- while wait() do
- if _G.AutoBuySwords == true then
- if plr.Backpack:FindFirstChildOfClass("Tool") then
- plr.Backpack:FindFirstChildOfClass("Tool").Parent = char
- end
- local autobuyswords = "buyAllItems"
- local sworddesc = {
- ["whichItems"] = "Swords";
- ["whichPlanet"] = bestPlanet
- }
- Event:FireServer(autobuyswords,sworddesc)
- end
- end
- end)
- buysword()
- local buycrystal = coroutine.wrap(function()
- while wait() do
- if _G.AutoBuyCrystals == true then
- local autobuyswords = "buyAllItems"
- local sworddesc = {
- ["whichItems"] = "Crystals";
- ["whichPlanet"] = bestPlanet
- }
- Event:FireServer(autobuyswords,sworddesc)
- end
- end
- end)
- buycrystal()
- local collector = coroutine.wrap(function()
- while wait(0.5) do
- if _G.Collect == true then
- local coinos = game:GetService("Workspace").spawnedCoins
- local spawns = game:GetService("Workspace").coinSpawns
- for i, v in pairs(coinos:GetDescendants()) do
- if v:IsA("BasePart") and v.Name == "Base" then
- if v.Parent.Parent.spawnValue.Value.Used.Value == false then
- hrp.CFrame = v.CFrame
- end
- end
- end
- end
- end
- end)
- collector()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement