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!
Don't buy exploits its not worth it your gonna quit anyway
Taking accountability will help you excel in life
Replied
Well it doesn't work, so skids would be confused
Cancel
Post
Added
Would anyone know? I am still very confused
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post