-- 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 return lst end local function atk(w) local pos = w.Character.HumanoidRootPart.Position local dir = (pos - hrp.Position).Unit fx:FireServer(tool, true) fire:InvokeServer(vector.create(dir.X, dir.Y, dir.Z), tool, tool, vector.create(pos.X, pos.Y, pos.Z)) hit:FireServer( vector.create(pos.X, pos.Y, pos.Z), vector.create(dir.X, dir.Y, dir.Z), tool, tool, w.Character.HumanoidRootPart, nil, plr.Name .. "Rocket" .. cnt ) cnt = cnt + 1 end spawn(function() while true do local lst = tgt() if #lst > 0 then if idx > #lst then idx = 1 end atk(lst[idx]) idx = idx + 1 end wait(0.1) end end)