Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
- local w = library:CreateWindow("LonePotato") -- Creates the window
- local b = w:CreateFolder("TruePiece") -- Creates the folder(U will put here your buttons,etc)
- b:Slider("WalkSpeed",{
- min = 10; -- min value of the slider
- max = 200; -- max value of the slider
- precise = true; -- max 2 decimals
- },function(value)
- print(value)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
- end)
- local SelectedMob
- local MobTable = game:GetService("Workspace").Mobs:GetChildren()
- local EndTable = {}
- function GetUniqueTable(Table)
- for i, v in pairs(Table) do
- if not table.find(EndTable, v.Name) then
- table.insert(EndTable, v.Name)
- end
- end
- return EndTable
- end
- GetUniqueTable(MobTable)
- b:Dropdown("Mob",EndTable,true,function(mob) --true/false, replaces the current title "Dropdown" with the option that t
- SelectedMob = mob
- end)
- b:Toggle("AutoFarm Selected",function(bool)
- if SelectedMob then
- shared.toggle = bool
- _G.Toggle = bool
- coroutine.wrap(function()
- activate()
- end)()
- coroutine.wrap(function()
- activate2()
- end)()
- end
- end)
- b:DestroyGui()
- -- Made By LonePotato
- local Character = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
- local AttackArgs = {
- [1] = "StandardCombat",
- [2] = CFrame.new(Vector3.new(-7133.6015625, 7.7194948196411, 10034.409179688), Vector3.new(0.36751398444176, -0.11057181656361, -0.92342156171799)),
- [4] = {
- ["ClientPosition"] = Character.Position,
- ["ClientCFrame"] = Character.CFrame
- }
- }
- function activate()
- while wait() do
- if not _G.Toggle then
- Character.CFrame = game:GetService("Workspace").MapSpawn["1"].Spawn.CFrame + Vector3.new(0,5, -100)
- break
- end
- if game:GetService("Workspace").Mobs:FindFirstChild(SelectedMob) then
- local Npc = game:GetService("Workspace").Mobs:FindFirstChild(SelectedMob)
- if Npc:FindFirstChild("HumanoidRootPart") then
- local HumanRoot = Npc:FindFirstChild("HumanoidRootPart")
- Character.CFrame = HumanRoot.CFrame * CFrame.Angles(80,0,0) + Vector3.new(0,6,0)
- game:GetService("ReplicatedStorage").Remotes.PlayerSkills:FireServer(unpack(AttackArgs))
- else
- print("Cant Find Npc Root Part")
- end
- else
- print("Cant Find Npc Name")
- end
- end
- end
- function activate2()
- game:GetService('RunService').Stepped:connect(function()
- if _G.Toggle then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(10)
- end
- end)
- end
Add Comment
Please, Sign In to add comment