Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Random Player Nothing Happens :./ Please help? :D

local players = game:GetService("Players"):GetPlayers()
zombie = math.random(1, #players)
h = Instance.new("Hint", game.Workspace)
h.Text = zombie.Name

2 answers

local players = game.Players:GetPlayers()
zombie = math.random(1, #players)
h = Instance.new("Hint",workspace)
h.Text = zombie.Name.. " has been chosen." --changed the hint to "name, has been chosen"

2 comments

0

Thanks Guys! :D

0

not working :(

Try changing local players = game:GetService("Players"):GetPlayers() to local players = game.Players:GetPlayers()

This discussion is preserved as it was. New answers, comments, and votes are closed.