Run it
Copy the script and paste it into your executor.
-- lol
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local tool = char:WaitForChild("RPG")
local ev = game.ReplicatedStorage.RocketSystem.Events
local fx = ev.RocketReloadedFX
local fire = ev.FireRocket
local hit = ev.RocketHit
local cnt = 0
local idx = 1
local function tgt()
local lst = {}
for _, w in pairs(game.Players:GetPlayers()) do
if w ~= plr and w.Character and w.Character:FindFirstChild("HumanoidRootPart") then
lst[#lst + 1] = w
end
end
lst
(w)
pos = w.Character.HumanoidRootPart.Position
dir = (pos - hrp.Position).Unit
fx:(tool, )
fire:(vector.(dir.X, dir.Y, dir.Z), tool, tool, vector.(pos.X, pos.Y, pos.Z))
hit:(
vector.(pos.X, pos.Y, pos.Z),
vector.(dir.X, dir.Y, dir.Z),
tool,
tool,
w.Character.HumanoidRootPart,
,
plr.Name .. .. cnt
)
cnt = cnt +
(()
lst = ()
#lst >
idx > #lst idx =
(lst[idx])
idx = idx +
()
)source code