|
| 10 Apr 2014 06:51 PM |
| This is suppose to make 1 person the MS and the rest Escapers can some one fix this for me? |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 06:51 PM |
if #player == 0 then print("No players.") script:remove() return end Escapers = player[(#player)] Escapers[i].TeamColor = BrickColor.new("Deep Blue")
local pickedPl = player[math.random(1, #player)] print(pickedPl.Name) pickedP1[i].TeamColor = BrickColor.new("Bright Red") |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 06:54 PM |
that's not whole script is it? you never defined player you didn't loop thru escapers or pickedPl
yknow what,nvm..
for loop it,and define "player" |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 06:55 PM |
Here?
local Players = game.Players
local player = Players:GetChildren() |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 06:56 PM |
| print("picking teams " + (loop (players))) |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 06:57 PM |
for I,Escapers in pairs(player) do Escapers.TeamColor = BrickColor.new("Deep Blue") end
--then the random plr bit here |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 10 Apr 2014 10:57 PM |
| Bump it doesn't work can some one help me please? |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 11:03 PM |
function makeTeams() local players = game.PlayersGetPlayers() local tick = math.random(1,#players) for i = 1, #players do if i == tick then predator = players[i].Name end end for i, player in pairs(game.Players:GetPlayers()) do if player.Name ~= predator then table.insert(blues,player.Name) end end |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 11:08 PM |
| I don't see how that could work there's no team colors? |
|
|
| Report Abuse |
|
|
| |
|
| |
|