So the point here is, that if times goes to 5, all players should die, besides the player that pressed the Button. I really don't have any idea how to make it, so i thought to come here and ask for help, Thnx!
local simonCommands = workspace.simonCommands
local theGUIs = game.Players.LocalPlayer.PlayerGui.simonCommandsOpen.CommandsGUI.simonSays
local dontmoveRemote = game.ReplicatedStorage.simonSays.DontMove
-- SIMON SAYS JUMP
theGUIs.Jump.MouseButton1Click:Connect(function()
simonCommands.Value = "Simon Says Jump"
print("Simon Says Jump")
for i, v in pairs(game.Players:GetPlayers()) do
local JumpedAlready = Instance.new("BoolValue")
JumpedAlready.Name = "JumpedAlready"
JumpedAlready.Value = false
JumpedAlready.Parent = v
for i = 0, 4 do
i = i + 1
print(i)
wait(1)
if i == 5 and v.JumpedAlready.Value == false then
v.Character.Humanoid.Health = 0
print("Killing: "..v.Name)
end
end
end
end)

2 comments
How will I know who pressed the button?
Looking at your code, it looks like this is being done in a GUI, so you'd have to use my snippet of code on a server script, after firing a remote event from the client that is currently simon.