ZawieJoin Date: 2010-07-04 Post Count: 6338 |
SCRIPT:
local Tool = game.Lighting.O
game.Players.PlayerAdded:connect(function(Player)
if Player.TeamColor == "Bright orange" then
Tool:clone().Parent = Player.StarterGear
Tool:clone().Parent = Player.Backpack
end
end)
PROBLEM: Doesn't give you the tool "O"
Solution: \/\/\/\/\/\/
|
|
|
Probably because the players team isn't orange once it joins the game?
|
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
oh good point. Should I just add a wait? Or is there like :WaitForTeams() |
|
|
To be honest i'm not quite sure because i haven't worked on teams for a while so i'd like search up some info about that if i were you or wait till someone can answer this, sorry :/ |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
So anybody going to be able to fix this?
Instance.new("Bumo") |
|
BLOXLUAJoin Date: 2013-03-16 Post Count: 453 |
Bumo |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Bumpo |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Nobody can fix this? Really???? |
|
|
local Tool = game.Lighting.O
game.Players.PlayerAdded:connect(function(Player)
if Player.TeamColor == BrickColor.new("Bright orange") then
Tool:clone().Parent = Player.StarterGear
Tool:clone().Parent = Player.Backpack
end
end) |
|
SkitzoneJoin Date: 2012-05-22 Post Count: 566 |
I got the same thing as mario..
local Tool = game.Lighting.O
game.Players.PlayerAdded:connect(function(Player)
if Player.TeamColor == "Bright orange" then
Tool:clone().Parent = Player.StarterGear
Tool:clone().Parent = Player.Backpack
end
end) |
|
|
That was a fix for your code. Here would be my more efficient version:
local Tool = Game:GetService('Lighting'):WaitForChild('O');
Game:GetService('Players').PlayerAdded:connect(function(Player)
repeat Wait() until Player.Character;
if Player.TeamColor == BrickColor.new('Bright orange') then
Tool:Clone().Parent = Player.StarterGear;
Tool:Clone().Parent = Player.Backpack;
end
end) |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Didn't fix... |
|
SkitzoneJoin Date: 2012-05-22 Post Count: 566 |
Oops,
local Tool = game.Lighting.O
game.Players.PlayerAdded:connect(function(Player)
if Player.TeamColor == BrickColor.new("Bright orange") then
Tool:clone().Parent = Player.StarterGear
Tool:clone().Parent = Player.Backpack
end
end) |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Wait nvm @Luv. It did fix it. I didn't copy the top part. I thought your fix was = ("Bright orange") |
|
|
because you need to use the color number not the color name |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
No color names works =/ |
|