Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --equip pistol to make kill all script work
- while true do
- local player = game.Players.LocalPlayer
- -- Iterate through all players in the game
- for i, v in ipairs(game.Players:GetPlayers()) do
- -- Check if the player is not the local player
- if v.Name ~= player.Name then
- local JN = v.Character -- Get the character of the other player
- local args = {
- [1] = JN, -- Target character
- [2] = math.huge -- Damage amount (using a very large number)
- }
- -- Fire the DealDamage event with the specified arguments
- game:GetService("Players").LocalPlayer.Character.Pistol.DealDamage:FireServer(unpack(args))
- end
- end
- wait(0.1)
- end
Advertisement
Comments
-
- https://www.roblox.com/games/14746027705/Mall-Cop-Simulator
Add Comment
Please, Sign In to add comment
Advertisement