i know how to kill everyone in a server but how would i get every single player in every single server and kill them on demand?
1 Like
I believe this should help, MessagingService
has the ability to initiate communication between crossing servers
1 Like
please help i really want this to work
1 Like
this could work i idk how to tho ive never used this service
i read the tutorial and i still dont understand
1 Like
The article literally gives an example and a description on how to use it???
2 Likes
If I were to do it, I’d use the HTTP Service with a centralized server to do the job.
1 Like
Something like this I guess.
local msgService = game:GetService("MessagingService")
local function killEveryone()
for _, player in pairs(game.Players:GetPlayers()) do
if player.Character then
local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
end
end
msgService:SubscribeAsync("KILL_EVERYONE", function()
killEveryone()
end)
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "KILL EVERYONE" then
msgService:PublishAsync("KILL_EVERYONE")
end
end)
end)
1 Like
I don’t think that’d be needed for something like this. I think messaging service would work fine
1 Like