Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Brickcolor is Teamcolor?

Asked by 8 years ago

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 
0
In what way does a brick have a team color? SpawnLocations have TeamColors... BlueTaslem 18071 — 8y
0
No, it's like, the paintball gun has a certain part of it that's the player's team color. iiDitzy 5 — 8y

4 answers

Log in to vote
0
Answered by 8 years ago

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 :)

0
Yes! Thanks! iiDitzy 5 — 8y
0
No problem :) UnityAlex 36 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

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.

Log in to vote
0
Answered by 8 years ago

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.

Log in to vote
-1
Answered by 8 years ago

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!

0
No, no, what I want is a brick (in a weapon) that changes it's color into the player's team color. Like, the player is on the red team, the color of the weapon is red. iiDitzy 5 — 8y
0
sorry cant help you there :( SwagSity101 0 — 8y
0
you should have worded the quesstion differently SwagSity101 0 — 8y
0
Not really... BRICKCOLOR is TEAMCOLOR, not very confusing, thanks for trying though! iiDitzy 5 — 8y
0
Please remove your answer if it is deemed unhelpful. HungryJaffer 1246 — 8y

Answer this question