Exploiters Killing All Players

Hi,

I am working on a custom health system. With a custom health system, I had to change how the reset button works using StarterGui:SetCore(“ResetButtonCallback”).

 game:GetService('StarterGui'):SetCore("ResetButtonCallback", resetBindable)

resetBindable.Event:Connect(function()
	reset:FireServer()
end) 

This is talked about here: Customizable Reset Button Logic - #23 by EchoReaper

The issue I am having is with firing the remote event. When I fire the remote event, the server kills the player. So, wouldn’t it be extrememly easy for an exploiter to loop through the player’s and fire the event and kill them all? This function only works on the client only so what are my other options to prevent this?
Thanks.

if you have it set so it only kills the player who fired it, then no, exploiters can NOT kill other players with this. Exploiters only have the power to do things from their client meaning they can not fire the RemoteEvent for another player.

To do things from the client, and for 90% of the time, FOR their client to add on to this reply.

Couldn’t the exploiter simply run

for _, v in pairs (game.Players:GetPlayers() do
    game.ReplicatedStorage.Reset:FireServer()
end

Or am I misunderstanding how it works?

no, this will just fire the remoteevent for themselves for the amount of players in the server. Now if you had the remote event like this:

Event.OnServerEvent:Connect(function(plr, target)
target.Character.Humanoid:TakeDamage(100)
end)

then the exploiter could simply do this:

for _, v in pairs (game.Players:GetPlayers() do
    game.ReplicatedStorage.Reset:FireServer(v)
end

BUT assuming you have your remote event like this:

Event.OnServerEvent:Connect(function(plr)
plr.Character.Humanoid:TakeDamage(100)
end)

it would only affect the exploiter themselves and no one else.

1 Like