Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.CoinType = "Normal" -- your unlocked area here. use dex if u dont know the names
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local plrhum = plr.Character.HumanoidRootPart
- local rs = game.ReplicatedStorage
- local CollectionService = game:GetService("CollectionService")
- local FireEventS = rs.Resources:FindFirstChild("RemoteEvents")
- local mouse = plr:GetMouse()
- local flags = {
- RUN = false,
- RUNNING = false
- }
- function claimquests()
- local quests = plr.PlayerGui.MainMenuGui.MainFrame.DataFrame.Paginas.Rewards.MainFrame.Scroll:GetChildren()
- for _, quest in next, quests do
- if quest.ClassName == "ImageLabel" then
- FireEventS.ClaimReward:FireServer(quest.Name)
- end
- end
- end
- function throwpaper()
- local tool = char:FindFirstChildOfClass("Tool")
- if not tool then
- char.Humanoid:EquipTool(plr.Backpack:FindFirstChildOfClass("Tool"))
- tool = char:FindFirstChildOfClass("Tool")
- end
- local Dir = (mouse.Hit.p - tool.Handle:FindFirstChildOfClass("Attachment").WorldPosition).Unit
- FireEventS.FireEvent:FireServer(Dir, tool)
- end
- function sell()
- FireEventS.Teleport:FireServer("Sell")
- end
- function isbackpackfull()
- local BackpackStats = plr:WaitForChild("BackpackStats")
- if BackpackStats.Value >= BackpackStats.MaxValue then
- return true
- end
- return false
- end
- function getallcoins()
- flags.RUNNING = true
- claimquests()
- throwpaper()
- if isbackpackfull() then
- sell()
- wait(1)
- end
- flags.RUNNING = false
- end
- function notification(title, subtitle, duration)
- game.StarterGui:SetCore("SendNotification", {
- Title = title;
- Text = subtitle;
- Duration = duration;
- })
- end
- notification("Loaded", "Script by asgar#3199, Asgarr on v3rmillion", 5)
- local uis = game:GetService("UserInputService")
- uis.InputBegan:Connect(function(input, gp)
- if input.KeyCode == Enum.KeyCode.Zero then
- flags.RUN = not flags.RUN
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if flags.RUN and (not flags.RUNNING) then
- getallcoins()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement