Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
- local w = library:CreateWindow("Anime Fighters Simulator")
- local b = w:CreateFolder("AutoFarm")
- local e = w:CreateFolder("Mix")
- local u = w:CreateFolder("Credits")
- SelectedEnemy = "Frieza1"
- Enemies = {}
- for i,v in pairs(game:GetService("Workspace").Worlds:GetDescendants()) do
- if v.Name == "Enemies" and v.ClassName == "Folder" then
- for i,v1 in pairs(v:GetChildren()) do
- if not table.find(Enemies,v1.Name) then
- table.insert(Enemies,v1.Name)
- end
- end
- end
- end
- function ClosestPart()
- local dist = math.huge
- local target = nil
- for i,v in pairs(game:GetService("Workspace").Worlds:GetDescendants()) do
- if v.ClassName == "Humanoid" then
- if v.Parent.Name == SelectedEnemy then
- if v.Parent:FindFirstChild("HumanoidRootPart") then
- local magnitude = (v.Parent.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
- if magnitude < dist then
- dist = magnitude
- target = v.Parent.HumanoidRootPart
- end
- end
- end
- end
- end
- return target
- end
- b:Toggle("AutoKillEnemies",function(bool)
- shared.toggle = bool
- AutoKillEnemies = bool
- end)
- b:Dropdown("Select Mob",Enemies,true,function(mob)
- SelectedEnemy = mob
- end)
- b:Toggle("AutoClickDamage",function(bool)
- shared.toggle = bool
- AutoClickDamage = bool
- end)
- b:Toggle("AutoCollectCoins",function(bool)
- shared.toggle = bool
- AutoCollectCoins = bool
- end)
- e:Toggle("AntiAfk",function(bool)
- shared.toggle = bool
- AntiAfk = bool
- end)
- --Credits
- u:Label("Youtube Subs: "..getgenv().Subscribers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Discord Members: "..getgenv().TotalMembers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Button("Discord Server",function()
- setclipboard(getgenv().Discord)
- end)
- u:Button("Youtube Channel",function()
- setclipboard(getgenv().Youtube)
- end)
- u:Button("Pastebin Page",function()
- setclipboard(getgenv().Pastebin)
- end)
- u:Button(getgenv().Username,function()
- setclipboard(getgenv().Username)
- end)
- game:GetService('RunService').Stepped:connect(function()
- spawn(function()
- if AutoClickDamage == true then
- game:GetService("ReplicatedStorage").Remote.ClickerDamage:FireServer()
- end
- end)
- end)
- while wait() do
- spawn(function()
- if AutoCollectCoins == true then
- for i,v in pairs(game:GetService("Workspace").Effects:GetDescendants()) do
- if v.Name == "Base" then
- v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
- end
- end
- end
- end)
- spawn(function()
- if AutoKillEnemies == true then
- for i,v in pairs(workspace.Pets:GetDescendants()) do
- if v.Name == "Owner" then
- if v.Value == game.Players.LocalPlayer then
- if v.Parent.Attacking.Value == nil then
- game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
- local tweenInfo = TweenInfo.new(
- 0
- )
- local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
- ClosestPart().CFrame.Position + Vector3.new(0,0,0)
- )})
- game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
- t:Play()
- wait(0)
- mouse1press() wait() mouse1release()
- else
- game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
- game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 128
- end
- end
- end
- end
- else
- game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 128
- end
- end)
- spawn(function()
- if AntiAfk == true then
- local bb=game:service'VirtualUser'
- bb:CaptureController()
- bb:ClickButton2(Vector2.new())
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement