Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if _G.common == nil then
- _G.common = false
- end
- if _G.uncommon == nil then
- _G.uncommon = false
- end
- if _G.rare == nil then
- _G.rare = false
- end
- if _G.legendary == nil then
- _G.legendary = true
- end
- if _G.mythic == nil then
- _G.mythic = true
- end
- if _G.godly == nil then
- _G.godly = true
- end
- if _G.autosell == nil then
- _G.autosell = true
- end
- if _G.MinimumStrength == nil then
- _G.MinimumStrength = 40000
- end
- _G.ok = not _G.ok
- local player = game.Players.LocalPlayer
- local remote = game:GetService("ReplicatedStorage").Remotes.RemoteEvent
- local server = game:GetService("ReplicatedStorage").ServerNetwork
- local quests = player.PlayerGui.UI.ItemShop.Background.Frame.Background.Frame
- local VirtualUser = game:GetService('VirtualUser')
- local map = player:WaitForChild("CurrentMap").Value
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- game:GetService("RunService"):BindToRenderStep("",0,function()
- if not _G.ok then
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(18)
- else
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
- end
- end)
- spawn(function()
- while _G.ok do
- if not _G.ok then
- break
- end
- if quests.Godly.Timer.Text == "READY" and _G.godly then
- server:InvokeServer("ItemShopPurchase", 6)
- end
- if quests.Mythic.Timer.Text == "READY" and _G.mythic then
- server:InvokeServer("ItemShopPurchase", 5)
- end
- if quests.Legendary.Timer.Text == "READY" and _G.legendary then
- server:InvokeServer("ItemShopPurchase", 4)
- end
- if quests.Rare.Timer.Text == "READY" and _G.rare then
- server:InvokeServer("ItemShopPurchase", 3)
- end
- if quests.Uncommon.Timer.Text == "READY" and _G.uncommon then
- server:InvokeServer("ItemShopPurchase", 2)
- end
- if quests.Common.Timer.Text == "READY" and _G.common then
- server:InvokeServer("ItemShopPurchase", 1)
- end
- wait(10)
- end
- end)
- spawn(function()
- while _G.ok do
- if not _G.ok then
- break
- end
- local equipped = false
- if #player.Quests:GetChildren() > 0 then
- for i,v in pairs(player.Quests:GetChildren()) do
- if v.Equipped.Value then
- equipped = true
- end
- end
- if not equipped then
- if player.Quests:FindFirstChild("Godly") then
- server:InvokeServer("QuestFunction", "EquipQuest", player.Quests:FindFirstChild("Godly"))
- else
- server:InvokeServer("QuestFunction", "EquipQuest", player.Quests:GetChildren()[1])
- end
- end
- end
- wait(5)
- end
- end)
- spawn(function()
- while _G.ok do
- if not _G.ok then
- break
- end
- if _G.autosell then
- for i,v in pairs(player.Weapons:GetChildren()) do
- if not _G.ok then
- break
- end
- if v.Damage.Value < _G.MinimumStrength then
- server:InvokeServer("WeaponFunction","MassTrash",{v.GUID.Value})
- end
- end
- end
- wait(5)
- end
- end)
- while _G.ok do
- wait()
- if not _G.ok then
- break
- end
- for i,v in pairs(workspace.Enemies[map]:GetChildren()) do
- if not _G.ok then
- break
- end
- player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + Vector3.new(0,-10,0)
- v.HumanoidRootPart.Anchored = true
- repeat wait()
- if not _G.ok then
- break
- end
- remote:FireServer("DamageInvoke", v, "FireBall", false)
- until not v:FindFirstChild("Humanoid") or v.Humanoid.Health < 1
- end
- end
- if not _G.ok then
- player.Character.HumanoidRootPart.CFrame = workspace.TeleportParts:WaitForChild(map).CFrame
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement