Advertisement
SigmaBoy456

Roblox Mall cop script fe kill all

Jul 4th, 2024 (edited)
532
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. --equip pistol to make kill all script work
  2. while true do
  3. local player = game.Players.LocalPlayer
  4.  
  5. -- Iterate through all players in the game
  6. for i, v in ipairs(game.Players:GetPlayers()) do
  7.     -- Check if the player is not the local player
  8.     if v.Name ~= player.Name then
  9.         local JN = v.Character -- Get the character of the other player
  10.         local args = {
  11.             [1] = JN,        -- Target character
  12.             [2] = math.huge  -- Damage amount (using a very large number)
  13.         }
  14.  
  15.         -- Fire the DealDamage event with the specified arguments
  16.         game:GetService("Players").LocalPlayer.Character.Pistol.DealDamage:FireServer(unpack(args))
  17.     end
  18. end
  19. wait(0.1)
  20. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement