#does anybody know how to make a kill all?

14 messages · Page 1 of 1 (latest)

limpid dagger
#

NOTE: I WILL SEND A SCRIPT IN A SECOND THAT I MADE

#

SCRIPT 1: NORMAL SCRIPT IN SERVER SCRIPT SERVICE:

local P = 1625368612

local MPS = game:GetService("MarketplaceService")

MPS.ProcessReceipt = function(info)
local P2 = info.P
local P3 = game.Players:GetPlayerByUserId(info.PlayerID)
for i, player in pairs(game.Players:GetChildren()) do
if player ~= P3 then
player.Character.Humanoid.Health = 0
end
end
end

#

SCRIPT 2: LOCAL SCRIPT IN MY GUI:

local P = 1625368612

local P2 = game.Players.LocalPlayer
local MPS = game:GetService("MarketplaceService")
script.Parent.ImageButton.MouseButton1Click:Connect(function()
MPS:PromptProductPurchase(P2, P)
end)

tribal fractal
#

local PlayerNotToKill = PlayerObj

for _,plr in next, game:GetService("Players"):GetPlayers() do
if plr.Character and plr ~= PlayerNotToKill then plr.Character:BreakJoints() end
end```
#

@limpid dagger

#

use it for kill everyone

limpid dagger
#

OK

#

thank you ill test it out now :D

tribal fractal
#

@limpid dagger so?

limpid dagger
#

a bit confused... idk if i placed it correctly in the script

tall crown
#

loop through the player and set their humanoid health to 0

#
--make a random part, and add a clickdetector inside the part, and inside the clickdetector add a server script. And paste this code inside the server script.

local clickDetector = script.Parent

clickDetector.MouseClick:Connect(function()
    for _, player in pairs(game.Players:GetPlayers()) do
        local character = player.Character
        if character then
            local humanoid = character:FindFirstChild("Humanoid")
            if humanoid then
                humanoid.Health = 0 -- Set player's Humanoid health to 0
            end
        end
    end
end)
tacit imp
#

Please