Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- warn("~ Praise le vleen! ~")
- local Keybind = _G.keybind
- local Enabled = false
- Mouse.KeyDown:Connect(function(Key)
- if Key == Keybind then
- Lock()
- end
- end)
- local function GetEnemies()
- local Table = {}
- for t, k in pairs(_G.path:GetChildren()) do
- table.insert(Table, k)
- end
- return Table
- end
- function Lock()
- if Enabled == false and Mouse.Target then
- local CurrentEnemies = GetEnemies()
- for _, v in pairs(CurrentEnemies) do
- if Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") and (Mouse.Target.Parent.HumanoidRootPart.Position - Player.Character.HumanoidRootPart.Position).Magnitude <= 15 then
- local Target = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart")
- if RenderStep then
- RenderStep:Disconnect()
- end
- RenderStep = RunService.RenderStepped:Connect(function()
- if not Target then
- RenderStep:Disconnect()
- Enabled = false
- end
- if Target.Parent.Humanoid.Health <= 0 then
- RenderStep:Disconnect()
- Enabled = false
- end
- if Player.Character.Humanoid.Health <= 0 then
- RenderStep:Disconnect()
- Enabled = false
- end
- Player.Character.HumanoidRootPart.CFrame = Target.CFrame + Target.CFrame.LookVector * _G.distance
- end)
- Enabled = true
- end
- break
- end
- else
- RenderStep:Disconnect()
- Enabled = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement