|
| 08 Sep 2014 11:55 AM |
This script is supposed to create a selection box, and place it in the user's Left Arm. The script is supposed to make the SelectionBox "Cyan" by default, but if the players teamcolor is "Bright red" then make the selection box color "Bright red". The problem is that the SelectionBox is always red for all the characters, even if they aren't on the red team.
game.Workspace.ChildAdded:connect(function(Character) wait() repeat wait() until game.Players.LocalPlayer local p = game.Players.LocalPlayer local box = Instance.new("SelectionBox") box.Parent = Character["Left Arm"] box.Adornee = Character["Left Arm"] box.Color = BrickColor.new("Cyan") wait() if p.TeamColor == BrickColor.new("Bright red") then wait(.5) box.Color = BrickColor.new("Bright red") end end)
|
|
|
| Report Abuse |
|
|
|
| 08 Sep 2014 12:00 PM |
game.Workspace.ChildAdded:connect(function(Character) wait() repeat wait() until game.Players.LocalPlayer local p = game.Players.LocalPlayer local box = Instance.new("SelectionBox") box.Parent = Character["Left Arm"] box.Adornee = Character["Left Arm"] box.Color = BrickColor.new("Cyan") wait() box.Color = p.TeamColor end)
? |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2014 12:11 PM |
| I tried it, still getting the same issue. :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Sep 2014 12:44 PM |
Use the wiki and you magicly see its a bug. :O
Its made of magic :P |
|
|
| Report Abuse |
|
|
Diogen
|
  |
| Joined: 01 Jul 2011 |
| Total Posts: 17 |
|
|
| 08 Sep 2014 01:01 PM |
| You need to set the Adornee... |
|
|
| Report Abuse |
|
|
| |
|