local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local TEvent = require(ReplicatedStorage.Shared.Core.TEvent)
local function ClosestTargets()
local ClosestTargets, ClosestRange = {}, 9e9
for _, Player in (Players:GetPlayers()) do
local PlayerTeam = Player.Team
if (Player == LocalPlayer) or (PlayerTeam == LocalPlayer.Team) or (PlayerTeam.Name == "Lobby") then
continue
end
local Character = Player.Character
if (not Character) or (Character:FindFirstChildWhichIsA("ForceField")) then
continue
end
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
local Head = Character:FindFirstChild("Head")
if (not Head) or (not Humanoid) or (Humanoid.Health <= 0) then
continue
end
local Distance = (Head.Position - LocalPlayer.Character.Head.Position).Magnitude
if (Distance < ClosestRange) then
table.insert(ClosestTargets, {
["Head"] = Head
})
end
end
for _, Bot in (Workspace:GetChildren()) do
if (not Bot:GetAttribute("IsBot")) or (Bot:FindFirstChildWhichIsA("ForceField")) then
continue
end
local Humanoid = Bot:FindFirstChildWhichIsA("Humanoid")
local Head = Bot:FindFirstChild("Head")
if (not Head) or (not Humanoid) or (Humanoid.Health <= 0) then
continue
end
local Distance = (Head.Position - LocalPlayer.Character.Head.Position).Magnitude
if (Distance < ClosestRange) then
table.insert(ClosestTargets, {
["IsBot"] = true,
["Head"] = Head
})
end
end
return ClosestTargets
end
while (task.wait()) do
local ClosestTargets = ClosestTargets()
if (#ClosestTargets > 0) then
for _, Target in (ClosestTargets) do
local Player
if (Target.IsBot) then
Player = Target.Head.Parent
else
Player = Players:GetPlayerFromCharacter(Target.Head.Parent)
end
TEvent.FireRemote("HookFire", {
["hookId"] = 67,
["startPosition"] = nil,
["direction"] = (Target.Head.Position - LocalPlayer.Character.Head.Position).Unit,
["distance"] = 9e9,
["hookFlyTime"] = 0,
["hookBackSpeed"] = 9e9,
["fireTime"] = 0
})
TEvent.FireRemote("HookHit", { -- changing it to FireRemote bypasses all checks
["hookId"] = 67,
["targetPlayer"] = Player,
["targetPartName"] = Target.Head.Name,
["hookBackSpeed"] = 9e9
})
TEvent.FireRemote("HookRelease", {
["hookId"] = 67,
["targetPlayer"] = Player,
["reason"] = "was a faggot"
})
end
end
endkill all script for Hooked, just wipes everyone fast and clean no extra stuff
⚠️ some trash executors might not support this, use a decent one or it prob won’t work
No comments yet. Be the first to comment!
1local ReplicatedStorage = game:GetService("ReplicatedStorage")
2local Workspace = game:GetService("Workspace")
3local Players = game:GetService("Players")
4
5local LocalPlayer = Players.LocalPlayer
6
7local TEvent = require(ReplicatedStorage.Shared.Core.TEvent)
8
9local function ClosestTargets()
10 local ClosestTargets, ClosestRange = {}, 9e9
11
12 for _, Player in (Players:GetPlayers()) do
13 local PlayerTeam = Player.Team
14 if (Player == LocalPlayer) or (PlayerTeam == LocalPlayer.Team) or (PlayerTeam.Name == "Lobby") then
15 continue
16 end
17
18 local Character = Player.Character
19
20 if (not Character) or (Character:FindFirstChildWhichIsA("ForceField")) then
21 continue
22 end
23
24 local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
25 local Head = Character:FindFirstChild("Head")
26
27 if (not Head) or (not Humanoid) or (Humanoid.Health <= 0) then
28 continue
29 end
30
31 local Distance = (Head.Position - LocalPlayer.Character.Head.Position).Magnitude
32
33 if (Distance < ClosestRange) then
34 table.insert(ClosestTargets, {
35 ["Head"] = Head
36 })
37 end
38 end
39
40 for _, Bot in (Workspace:GetChildren()) do
41 if (not Bot:GetAttribute("IsBot")) or (Bot:FindFirstChildWhichIsA("ForceField")) then
42 continue
43 end
44
45 local Humanoid = Bot:FindFirstChildWhichIsA("Humanoid")
46 local Head = Bot:FindFirstChild("Head")
47
48 if (not Head) or (not Humanoid) or (Humanoid.Health <= 0) then
49 continue
50 end
51
52 local Distance = (Head.Position - LocalPlayer.Character.Head.Position).Magnitude
53
54 if (Distance < ClosestRange) then
55 table.insert(ClosestTargets, {
56 ["IsBot"] = true,
57 ["Head"] = Head
58 })
59 end
60 end
61
62 return ClosestTargets
63end
64
65while (task.wait()) do
66 local ClosestTargets = ClosestTargets()
67 if (#ClosestTargets > 0) then
68 for _, Target in (ClosestTargets) do
69 local Player
70
71 if (Target.IsBot) then
72 Player = Target.Head.Parent
73 else
74 Player = Players:GetPlayerFromCharacter(Target.Head.Parent)
75 end
76
77 TEvent.FireRemote("HookFire", {
78 ["hookId"] = 67,
79 ["startPosition"] = nil,
80 ["direction"] = (Target.Head.Position - LocalPlayer.Character.Head.Position).Unit,
81 ["distance"] = 9e9,
82 ["hookFlyTime"] = 0,
83 ["hookBackSpeed"] = 9e9,
84 ["fireTime"] = 0
85 })
86
87 TEvent.FireRemote("HookHit", { -- changing it to FireRemote bypasses all checks
88 ["hookId"] = 67,
89 ["targetPlayer"] = Player,
90 ["targetPartName"] = Target.Head.Name,
91 ["hookBackSpeed"] = 9e9
92 })
93
94 TEvent.FireRemote("HookRelease", {
95 ["hookId"] = 67,
96 ["targetPlayer"] = Player,
97 ["reason"] = "was a faggot"
98 })
99 end
100 end
101end