Forum > Scripts >

Anomic Kill All

SmittyTitty

JoeDaddy

Posts: 7

Threads: 4

Joined: Sep, 2020

Reputation: 0

Posted

Hello, I am trying to make a kill all script for Anomic, which I have done a bit. I have used the remote event and all it works, but no person dies. The ammo count though does go to 0. How can I fix this? 

 

local replicatedStorage = game:GetService("ReplicatedStorage")

local userInputService = game:GetService("UserInputService")

 

local player = game.Players.LocalPlayer

 

local currentTool = nil

 

for i, v in pairs(player.Backpack:GetChildren()) do

v.Equipped:Connect(function()

        print(v)

currentTool = v.Name

end)

 

v.Unequipped:Connect(function()

currentTool = nil

end)

end

 

userInputService.InputBegan:Connect(function(inp, gPE)

if inp.KeyCode == Enum.KeyCode.E and not gPE then

for i, v in pairs(game.Players:GetPlayers()) do

if v.Character and v.Character:FindFirstChild("Head") and currentTool then

                replicatedStorage["_CS.Events"].MouseEvent:FireServer()

replicatedStorage["_CS.Events"].RayDrawer:FireServer(

v.Character.Head.Position,

v.Character.Head,

workspace.RayIgnore[player.Name][currentTool].Handle.Shot,

Enum.NormalId.Top

)

end

end

end

end)

 

PLEASE DONT STEAL THIS SCRIPT, OR GIVE CREDIT AT LEAST!

  • 0

Posts: 797

Threads: 70

Joined: May, 2020

Reputation: 9

Replied

@Astronemi Then how we gonna help him

  • 0

Don't buy exploits its not worth it your gonna quit anyway

Taking accountability will help you excel in life

SmittyTitty

JoeDaddy

Posts: 7

Threads: 4

Joined: Sep, 2020

Reputation: 0

Replied

Well it doesn't work, so skids would be confused

 

  • 0

Added

Would anyone know? I am still very confused

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )