I want it to randomly choose a Player and post a Message. Error: bad argument #2 to 'random' (number expected, got table) Thats what roblox tells me
local PlayerTable = game.Players:GetPlayers()
local ChosenPlayer = PlayerTable[math.random(1,#PlayerTable)]
local m = Instance.new ("Message")
while true do
wait(10)
m.Parent = game.Workspace
m.Text = "The player that has been chosen is:"..ChosenPlayer"Congratulations!"
wait (4)
m:remove()
end
Thank you.
