Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Globals
- num = 0
- Terminated = false
- Enabled = false
- Distance = -25
- speed = 100
- Equipped = nil
- -- Variables
- local player = game.Players.LocalPlayer
- -- NoClip
- Stepped = game:GetService("RunService").RenderStepped:Connect(function()
- if Enabled then
- player.Character.Humanoid:ChangeState(11)
- end
- if Terminated then
- Stepped:Disconnect()
- end
- end)
- -- Equip
- local function equip()
- if player.Character and player.Character:FindFirstChildOfClass("Tool") then
- local tool = player.Character:FindFirstChildOfClass("Tool")
- if Equipped ~= tool.Name then
- Equipped = tool.Name
- num = 0
- end
- return tool
- elseif player:FindFirstChild("Backpack") and player.Character then
- table.foreach(player.Backpack:GetChildren(), function(i,v)
- if v:IsA("Tool") and v:FindFirstChild("ToolScript") then
- if Equipped ~= v.Name then
- Equipped = v.Name
- num = 0
- end
- v.Parent = player.Character
- return player.Character:FindFirstChildOfClass("Tool")
- end
- end)
- end
- end
- -- UI Library
- local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua"))()
- local FinityWindow = Finity.new(DarkMode)
- FinityWindow.ChangeToggleKey(Enum.KeyCode[Key])
- -- Categories
- local MainFarm = FinityWindow:Category("AutoFarm")
- local CreditsCategory = FinityWindow:Category("Credits")
- -- Credits
- local CreditsCreator = CreditsCategory:Sector("Finity Library Creator")
- local ScriptCreator = CreditsCategory:Sector("Script Creator")
- CreditsCreator:Cheat("Label", "detourious @ v3rmillion.net")
- CreditsCreator:Cheat("Label", "deto#7612 @ discord.gg")
- ScriptCreator:Cheat("Label", "egg salad @ v3rmillion.net")
- ScriptCreator:Cheat("Label", "egg salad#3112 @ discord.gg")
- ScriptCreator:Cheat("Label", "Discord Server @ discord.gg/aPg7RQV")
- -- Main
- local MainSec = MainFarm:Sector("Main")
- MainSec:Cheat("Checkbox", "Enabled", function(State)
- Enabled = State
- end)
- MainSec:Cheat("Textbox", "Distance", function(Value)
- Distance = Value
- end)
- MainSec:Cheat("Textbox", "Speed", function(Value)
- speed = Value
- end)
- MainSec:Cheat("Button", "Delete GUI", function()
- Terminated = true
- end,{text="Terminate"})
- -- Tween Function
- function tween(egg, off)
- game:GetService("TweenService"):Create(player.Character.HumanoidRootPart, TweenInfo.new(player:DistanceFromCharacter(egg.HumanoidRootPart.Position+Vector3.new(0,off,0))/speed, Enum.EasingStyle.Linear), {CFrame = egg.HumanoidRootPart.CFrame + Vector3.new(0,off,0)}):Play()
- wait(player:DistanceFromCharacter(egg.HumanoidRootPart.Position+Vector3.new(0,off,0))/speed)
- end
- -- Get Enemy
- function get()
- local close
- local dist = math.huge
- local shid = workspace.MapAreas:GetDescendants()
- for i = 1, #shid do local v = shid[i]
- if Enabled and not Terminated and v:IsA("Model") and v:FindFirstChild("Humanoid") and v:FindFirstChild("Head") and v:FindFirstChild("HumanoidRootPart") and v.Humanoid.Health > 0 and v:FindFirstChild("data") then
- local newDist = player:DistanceFromCharacter(v.HumanoidRootPart.Position)
- if newDist < dist then
- dist = newDist
- close = v
- end
- end
- end
- return close
- end
- -- Skeet
- while true do
- if Enabled and not Terminated then
- local v = get()
- if not Terminated and Enabled and typeof(v) == "Instance" then
- equip()
- tween(v, Distance)
- repeat
- pcall(function()
- player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + Vector3.new(0, Distance, 0)
- end)
- wait()
- pcall(function()
- equip():FindFirstChildOfClass("Script"):FindFirstChildOfClass("RemoteEvent"):FireServer(num, "blood", {offset=v.HumanoidRootPart.CFrame,obj=v.Head,damage=v.Humanoid.Health,vectorthing=v.Head.Position,vec2=v.Head.Position,spos=v.Head.Position})
- end)
- num = num + 1
- until Terminated or not Enabled or not v.Parent or v.Humanoid.Health <= 0
- end
- end
- wait(.2)
- if Terminated then
- game.CoreGui.FinityUI:Destroy()
- return
- end
- end
Add Comment
Please, Sign In to add comment