of     1   

TheProM
#141161818Tuesday, July 22, 2014 1:50 PM GMT

Pick random player? how? i need it for gamescript
cntkillme
#141161845Tuesday, July 22, 2014 1:50 PM GMT

local randomPlayer = Game.Players:GetPlayers()[math.random(Game.Players.NumPlayers)];
smiley599
#141161868Tuesday, July 22, 2014 1:51 PM GMT

game.Players:GetChildren()[math.random(1,#game.Players.NumPlayers)]
smiley599
#141162079Tuesday, July 22, 2014 1:55 PM GMT

oops i put # of a property
cntkillme
#141162217Tuesday, July 22, 2014 1:58 PM GMT

That would be fine if the property's value was a table, but it's an integer in this case
TheProM
#141162357Tuesday, July 22, 2014 2:00 PM GMT

local randomPlayer = Game.Players:GetPlayers()[math.random(Game.Players.NumPlayers)]; workspace.Feed.Value = "Boss: "..randomPlayer.name.." " got error on that one
youssef04
#141162408Tuesday, July 22, 2014 2:01 PM GMT

Remove the ".name"
cntkillme
#141162484Tuesday, July 22, 2014 2:02 PM GMT

Make it .Name
TheProM
#141162518Tuesday, July 22, 2014 2:03 PM GMT

I tried this workspace.Feed.Value = "Boss: "..randomPlayer.Name And worked. Thanks everyone :)
TheProM
#141162577Tuesday, July 22, 2014 2:04 PM GMT

Is it possible to give everyone a weapon in lighting. and randomplayer.Name special weapon?
smiley599
#141162657Tuesday, July 22, 2014 2:06 PM GMT

for k,v in pairs(game.Players:children()) do if v.Name~=randomPlayer.Name then game.Lighting.tool:clone().Parent=v.Backpack else game.Lighting.specialtool:clone().Parent=v.Backpack end end
TheProM
#141163125Tuesday, July 22, 2014 2:15 PM GMT

Ok. Thank you cx Now i'm at 'when boss' dies. it end the game
smiley599
#141163157Tuesday, July 22, 2014 2:16 PM GMT

randomPlayer.Character.Humanoid.Died:connect(function()
UncleTaz
#141163767Tuesday, July 22, 2014 2:28 PM GMT

Damn smiley you just wrote his whole game -_-'
smiley599
#141164197Tuesday, July 22, 2014 2:36 PM GMT

Yeah I was thinking just that. Oh well, he's learning I hope.
TheProM
#141164959Tuesday, July 22, 2014 2:49 PM GMT

Lol. I actually learned something from last time you helped me o.o

    of     1