How do I make a random player chooser? All I want it to do for now is kill the player. I thought I could do this:
local RP = game.Players:FindFirstChild(Random)
RP.Humanoid.Health = 0
But that didn't work. I also tried:
local RP = game.Players:FindFirstChild()
RP.Humanoid.Health = 0
and:
local RP = game.Players:FindFirstChild(function()
RP.Humanoid.Health = 0
But none of those worked. PLEASE please PLEASE help me!
FYI, I put this script in ServerScriptService.

2 comments
Try learning math.random. Also learn how to put your code in a code block
I put it in a code block for you