Hi, So I need a script for my game where at the beginning of each round it picks a random player to be a killer, and I don't know how to do this, can you guys pls kind of give an example or what to type on the wiki, Thanks! :D
You need to use math.random
to pick a random player.
p = game:GetService("Players"):GetChildren() randplayer = p[math.random(1,#p)] print(randplayer.Name)
Please accept if this helped!
Closed as Not Constructive by User#18043, PyccknnXakep, and hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?