Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variable
- local player = game.Players.LocalPlayer
- -- Network
- loadstring(game:HttpGetAsync("https://pastebin.com/raw/pcUnrSHM"))()
- --UI Library
- local library = loadstring(game:HttpGet("https://pastebin.com/raw/eWKgbdix", true))()
- local w = library:CreateWindow('clickr hero 2!!')
- w:Section('Made by Megumu')
- w:Toggle('Auto Collect', {flag = "collect"})
- w:Section('Settings')
- w:Dropdown("locations", {
- location = _G;
- flag = "motion";
- list = {
- "Walk";
- "Teleport";
- }
- }, function()
- print(_G.motion)
- end)
- w:Toggle('Gems',{flag="Gems"})
- w:Toggle('Bux',{flag="Bux"})
- w:Toggle('Supply Drop',{flag="SupplyDrop"})
- -- Synapse X Fix
- if syn and syn.run_secure_function then
- syn.set_thread_identity(2);
- end
- -- Get Nearest
- function nearest()
- local Closest
- local Distance = math.huge
- local shit = workspace.Currency:GetChildren()
- for i = 1, #shit do local v = shit[i]
- if w.flags[v.Name] and pcall(function() return v.Clicks,v.Needed end) and v.Clicks.Value<v.Needed.Value then
- local newDistance = player:DistanceFromCharacter(v.Position)
- if newDistance < Distance then
- Closest = v
- Distance = newDistance
- end
- end
- end
- return Closest
- end
- -- Get Shit
- while true do
- if w.flags.collect then
- repeat
- local thing = nearest()
- if thing then
- if _G.motion == "Walk" then
- player.Character.Humanoid:MoveTo(thing.Position)
- player.Character.Humanoid.Sit = false
- network:send("ClickCurrency",thing)
- else
- player.Character.HumanoidRootPart.CFrame=thing.CFrame+Vector3.new(0,3,0)
- player.Character.Humanoid.Sit = false
- network:send("ClickCurrency",thing)
- end
- end
- wait(.1)
- until not w.flags.collect
- end
- wait(.25)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement