I am trying to print ONE random players name and excluding my name, I can't get it to work. Any help please?
Error: print(PlayerList[math.random(#PlayerList)]):7: invalid argument #1 to 'random' (interval is empty)
local LocalPlayer = game.Players.LocalPlayer
local Players = game.Players:GetPlayers()
local PlayerList = {Players}
table.remove(PlayerList, table.find(PlayerList, LocalPlayer))
print(PlayerList[math.random(#PlayerList)])

4 comments
You need two numbers for math.random, so just do 1, #Playerlist
Sorry, i forgot..
It doesn't work.
I managed to fix your script, thank you for your time though.