Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 23 Feb 2014 03:11 AM |
The problem is that this script isn't making a string value into the player, I don't really know why.
game.Players.PlayerAdded:connect(function(a) name = a.Name game.Workspace:WaitForChild(name) char = {"red", "blue", "yellow"} gamechoice = char[math.random(#char)] b = Instance.new("StringValue", game.Workspace[name]) b.Name = "color" b.Value = gamechoice end) |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 23 Feb 2014 06:54 AM |
| Maybe try using CharacterAdded? |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 23 Feb 2014 06:56 AM |
gamechoice = char[math.random(1,#char)] |
|
|
| Report Abuse |
|
|
|
| 23 Feb 2014 07:04 AM |
I did not notice that... Do what the above poster said. |
|
|
| Report Abuse |
|
|