Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- , head '#0666
- -- π΅πππ½π://π±πΆππ°πΌπΏπ±.π΄π΄/πππͺππ΅ππ±π―ππ
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "executed!";
- Text = ", head '#0666";
- Duration = 3.5;
- })
- local Camera = game:GetService("Workspace").CurrentCamera local Players = game:GetService("Players") local LocalPlayer = game:GetService("Players").LocalPlayer local function GetClosestPlayer() local ClosestPlayer = nil local FarthestDistance = math.huge for i, v in pairs(Players.GetPlayers(Players)) do if v ~= LocalPlayer and v.Character and v.Character.FindFirstChild(v.Character, "HumanoidRootPart") then local DistanceFromPlayer = (LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude if DistanceFromPlayer < FarthestDistance then FarthestDistance = DistanceFromPlayer ClosestPlayer = v end end end if ClosestPlayer then return ClosestPlayer end end local GameMetaTable = getrawmetatable(game) local OldGameMetaTableNamecall = GameMetaTable.__namecall setreadonly(GameMetaTable, false) GameMetaTable.__namecall = newcclosure(function(object, ...) local NamecallMethod = getnamecallmethod() local Arguments = {...} if tostring(NamecallMethod) == "FindPartOnRayWithIgnoreList" then local ClosestPlayer = GetClosestPlayer() if ClosestPlayer and ClosestPlayer.Character then Arguments[1] = Ray.new(Camera.CFrame.Position, (ClosestPlayer.Character.Head.Position - Camera.CFrame.Position).Unit * (Camera.CFrame.Position - ClosestPlayer.Character.Head.Position).Magnitude) end end return OldGameMetaTableNamecall(object, unpack(Arguments)) end) setreadonly(GameMetaTable, true)
- local Enabled = true
- local Prediction = 0.1398
- local Notifications = true
- local AimPart = "UpperTorso"
- local Tool = Instance.new("Tool")
- Tool.RequiresHandle = false
- Tool.Name = "head lock Tool"
- local Camera = game:GetService("Workspace").CurrentCamera
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Plr
- local Part = Instance.new("Part", game.Workspace)
- Part.Anchored = true
- Part.CanCollide = false
- Part.Color = Color3.fromRGB(0, 0, 176)
- Part.Material = Enum.Material.Neon
- Part.Size = Vector3.new(0.93, 0.93, 0.93)
- Part.Shape = Enum.PartType.Block
- function FindClosestPlayer()
- local closestPlayer
- local shortestDistance = math.huge
- for i, v in pairs(game.Players:GetPlayers()) do
- if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
- v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
- local pos = Camera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
- local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
- if magnitude < shortestDistance then
- closestPlayer = v
- shortestDistance = magnitude
- end
- end
- end
- return closestPlayer
- end
- Tool.Activated:Connect(function()
- if Enabled == true then
- Enabled = false
- if Notifications == true then
- Plr = FindClosestPlayer()
- TargetPlayer = tostring(Plr)
- game.StarterGui:SetCore("SendNotification", {
- Title = "",
- Text = ""
- })
- end
- else
- Plr = FindClosestPlayer()
- TargetPlayer = tostring(Plr)
- Enabled = true
- if Notifications == true then
- Plr = FindClosestPlayer()
- TargetPlayer = tostring(Plr)
- game.StarterGui:SetCore("SendNotification", {
- Title = "",
- Text = "" .. tostring(TargetPlayer)
- })
- end
- end
- end)
- game:GetService("RunService").Stepped:Connect(function()
- if Enabled == true then
- Part.Position = game.Players[TargetPlayer].Character.HumanoidRootPart.Position
- else
- Part.CFrame = CFrame.new(0, -9999, 0)
- end
- end)
- local mt = getrawmetatable(game)
- local old = mt.__namecall
- setreadonly(mt, false)
- mt.__namecall = newcclosure(function(...)
- local args = { ... }
- if Enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
- args[3] = game.Players[TargetPlayer].Character[AimPart].Position +
- (game.Players[TargetPlayer].Character[AimPart].Velocity * Prediction)
- return old(unpack(args))
- end
- return old(...)
- end)
- Tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement