ADVERTISEMENTREMOVE ADS
Auto Shoots All Players ()
46,834 views
Script Preview
Description
New Script!, Free!
hotkey : Z = Auto On/Off,
i Update my script Soon!
Tested with
ADVERTISEMENTREMOVE ADS
60 Lines • 2.19 KiB
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RS = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local autoShootEnabled = false
local function getToolAndCategory()
return RS.LocalData.LocalSelectedReal.Value, RS.LocalData.LocalCategory.Value
end
local function getFireRemote()
return RS.Events:FindFirstChild(LocalPlayer.Name)
end
local function shootPlayer(targetPart, toolName, category, fireRemote)
if targetPart then
local hitPosition = targetPart.Position
local surfaceNormal = Vector3.new(0, 1, 0)
fireRemote:FireServer("Activated", toolName, targetPart, hitPosition, category, surfaceNormal)
end
end
-- Hotkey to toggle
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.Z then
autoShootEnabled = not autoShootEnabled
print("Auto-Shoot is now " .. (autoShootEnabled and "ON" or "OFF"))
end
end)
-- Main auto-shoot loop
task.spawn(function()
while true do
if autoShootEnabled then
local myTeam = LocalPlayer.Team and tostring(LocalPlayer.Team)
local toolName, category = getToolAndCategory()
local fireRemote = getFireRemote()
for _, targetPlayer in ipairs(Players:GetPlayers()) do
if targetPlayer ~= LocalPlayer
and targetPlayer.Character
and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
local targetTeam = targetPlayer.Team and tostring(targetPlayer.Team)
if (myTeam == "R" and targetTeam == "B")
or (myTeam == "B" and targetTeam == "R")
or ((myTeam ~= "R" and myTeam ~= "B") and (not targetTeam or (targetTeam ~= "R" and targetTeam ~= "B"))) then
shootPlayer(targetPlayer.Character.HumanoidRootPart, toolName, category, fireRemote)
task.wait(1.3)
end
end
end
end
task.wait(1)
end
end)
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS






Comments
It's working on mobile ?
@FahadAshfaq looking at the code it should work on phone