Advertisement
Urbanpower

Clicker Madness Script Vision

May 20th, 2022
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. --[[
  2. Thanks for checking out our open source 'tutorial' script!
  3. Most of this script is commented to explain some concepts.
  4. Feel free to utilize the methods shown in this script for your own work!
  5.  
  6. Made by: Dosage#9999
  7. Brought to you by: Vision Software - discord.gg/vision-hub https://visionhub.dev
  8. ]]--
  9. repeat task.wait() until game:isLoaded() -- This is not really required unless the script will be in autoexecute
  10.  
  11. print("Open-Source Script by Vision Software - discord.gg/vision-hub")
  12.  
  13. -- // Library
  14. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  15. local Window = OrionLib:MakeWindow({ Name = "Vision", HidePremium = true, SaveConfig = true, ConfigFolder = "Vision" })
  16.  
  17. -- // Services -- Defining Services, Variables, and Functions all in one place above the rest of the scripts makes life easy
  18. local players = game:GetService("Players")
  19. local replicatedstorage = game:GetService("ReplicatedStorage")
  20. local runservice = game:GetService("RunService")
  21.  
  22. -- // Variables
  23. local player = players.LocalPlayer
  24. getgenv().Settings = { -- Storing settings in a table is not required but can keep things easier to find and work with. With Orion you can save time by using Flags instead of a table, but i prefer tables.
  25. beastMode = false, -- Make sure you set everything to a good default so it doesnt make shit go brr without the user turning it on
  26. autoClicker = { -- Nesting tables is good for keeping one feature with extra options neat and integrated with the settings
  27. enabled = false,
  28. multi = 1
  29. },
  30. bossFarm = false,
  31. pickupFarm = false
  32. }
  33.  
  34. -- // Functions
  35. local function sendClick(multi)
  36. replicatedstorage.Aero.AeroRemoteServices.ClickService.Click:FireServer(multi)
  37. end
  38.  
  39. local function getPasses(toggle) -- These are not consistent nor efficient ways to make the functions bc i couldnt decide if i wanted to use the table above then decided a grand 'kinda' so i can still show the settings table
  40. for _,v in pairs(player.Gamepasses:GetChildren()) do
  41. v.Value = toggle
  42. end
  43. end
  44.  
  45. local function getFlags()
  46. local startPos = player.Character.HumanoidRootPart.CFrame
  47. for _,v in pairs(workspace.Flags:GetChildren()) do
  48. if v then
  49. player.Character.HumanoidRootPart.CFrame = v.Hitbox.CFrame + Vector3.new(0, 5, 0)
  50. task.wait(7)
  51. player.Character.HumanoidRootPart.CFrame = startPos
  52. end
  53.  
  54. end
  55. end
  56.  
  57.  
  58.  
  59.  
  60. -- // Main Tab -- Always sort your tabs so you dont get lost in the sauce. Making everything one line makes it easier to read the info you might need and find something faster
  61. local mainTab = Window:MakeTab({ Name = "Main", Icon = "rbxassetid://4483345998", PremiumOnly = false })
  62. mainTab:AddLabel("Autofarm")
  63. mainTab:AddToggle({ Name = "Autoclicker", Default = false, Callback = function(t) Settings.autoClicker.enabled = t end })
  64. mainTab:AddSlider({ Name = "Autoclicker Multiplier", Min = 1, Max = 10, Default = 1, Increment = 1, ValueName = "x", Callback = function(t) Settings.autoClicker.multi = t end })
  65. mainTab:AddToggle({ Name = "Boss Farm", Default = false, Callback = function(t) Settings.bossFarm = t end })
  66. mainTab:AddToggle({ Name = "Pickup Farm", Default = false, Callback = function(t) Settings.pickupFarm = t end })
  67. mainTab:AddButton({ Name = "Capture All Flags", Callback = function() getFlags() end })
  68.  
  69. mainTab:AddLabel("Misc")
  70. mainTab:AddToggle({ Name = "All Gamepasses", Default = false, Callback = function(t) getPasses(t) end })
  71. mainTab:AddToggle({ Name = "Hide Popup Effects", Default = false, Callback = function(t) player.PlayerGui.PopupEffects.Enabled = not t end })
  72.  
  73.  
  74. -- // Loops -- I put these at the end bc everything is defined above and it wont error ok yes
  75.  
  76.  
  77. runservice.RenderStepped:Connect(function() -- Renderstepped runs every frame, use `while task.wait() do` instead if you don't want it bound to your fps depending on what you're doing.
  78.  
  79. if Settings.autoClicker.enabled then -- No need to use getgenv() to call the value. Also no need to use == true for a bool
  80. sendClick(Settings.autoClicker.multi)
  81. end
  82.  
  83. if Settings.bossFarm then
  84. local remote = replicatedstorage.Aero.AeroRemoteServices.CursorCannonService.FireBoss
  85. for _,v in pairs(replicatedstorage.BossObjects:GetChildren()) do
  86. remote:FireServer(v.Name)
  87. end
  88. end
  89.  
  90. if Settings.pickupFarm then
  91. for _,v in pairs(workspace.ScriptObjects:GetChildren()) do
  92. if v and v.Name == "BasePickup" and v:FindFirstChild("HumanoidRootPart") then
  93. firetouchinterest(player.Character.Head, v.HumanoidRootPart, 0)
  94. end
  95. end
  96. end
  97.  
  98. end)
  99.  
  100.  
  101.  
  102. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement