Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

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

2 answers

Log in to vote
0
Answered by
Relatch 550 Moderation Voter
9 years ago
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"
0
Thanks Guys! :D dscpcheatsis10123 0 — 9y
0
not working :( dscpcheatsis10123 0 — 9y
Ad
Log in to vote
-1
Answered by 9 years ago

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

Answer this question