I have no idea on how to do this, but.. I would like this feature in a game I'm making.. Could someone explain it too me?
Is it this, (in the brick)
script.Parent.TeamColor = script.Parent.BrickColor
Put this script in the brick of the weapon:
brick = script.Parent player = script.Parent.Parent.Parent.Parent brick.BrickColor = player.TeamColor
Hope that helped :)
I can make you a script but I need to know the children and their classid's. Since TeamColor is Color3 and BrickColor is BrickColor then you need to add .Color or .BrickColor at the end.
Changing a Color value like that just won't work. You will have to use BrickColor.new to change it.
script.Parent.TeamColor = BrickColor.new(script.Parent.BrickColor)
A BrickColor value is a specific color value. They are used instead of Color3 values on bricks and other 3D objects. Each BrickColor has a numeric id, that represents the color. For example, 1 is white, and 45 is a light blue. There are many different colors available: see the list here. If we want to change this TeamColor to that BrickColor, we will have to add BrickColor.new, then pull the BrickColor of the Part.
you do not need to script to change team or brick color. changing team color is easy, open the "Explorer" tab and clock Workspace. Select the spawn, on the right side you will see the appearance section open up in the "Properties" tab. that's where you change brick color. To change team color select the spawner in the Explorer tab, in the "Properties" tab scroll down to find the "Team section" then change team color. (Make sure to change team name :) Hope i helped!