|
| 19 Dec 2014 12:58 PM |
line 8 (I think that's what the dev console said) it said : attempt to index a global value "b" nil?
I did define it?
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) Colours = game.ServerStorage:GetChildren() i = math.random(1,#Colours) RandomCol = Colours[i] a = RandomCol:clone() b = game.Players:GetPlayerFromCharacter(character.Parent) a.Parent = b.StarterPack end) end) |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 01:08 PM |
"b = game.Players:GetPlayerFromCharacter(character.Parent)" "GetPlayerFromCharacter" "PlayerFromCharacter" "FromCharacter" "Character" "character.Parent" uwot |
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 19 Dec 2014 01:14 PM |
maybe add something like this...
character = player.Character |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 01:16 PM |
| player.CharacterAdded:connect(function(character) < defined here when event fires function. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Dec 2014 01:24 PM |
.-. Did you not read what I said I was emphasizing "FromCharacter" and the fact that character.Parent ~= character thus it'll return nil. |
|
|
| Report Abuse |
|
|
| |
|