I have this script in SeverScriptService
local p = table() for i, v in pairs do game.Players:GetPlayers() table.insert(#p, v.Name) end print(#p)
The error in the output says "ServerScriptService.Script:1: attempt to call a table value"
To get a random player you index a random number in the players service:
local Rando = game.Players:GetChildren()[math.random(1,#game.Players:GetChildren())]
returns the player not the character.
also remember,
local table = {} -- create a table
and
for i, v in pairs(list) do -- code end
if this helps then upvote and click answer, k thx