
Keyless

local RS = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local DamageRemote = RS:WaitForChild("Remotes"):WaitForChild("DamagePlayer")
local LocalPlayer = Players.LocalPlayer
local function damageAllPlayersExceptSelf()
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Humanoid") then
local args = {
[1] = {},
[2] = player,
[3] = player.Character.Humanoid,
[4] = 20,
[5] = {
["AttackSpeed"] = 0
}
}
DamageRemote:FireServer(unpack(args))
end
end
end
damageAllPlayersExceptSelf()
while true do
damageAllPlayersExceptSelf()
wait(0.1)
end


use task.wait and just use while task.wait