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

why is game.Workspace.part.BrickColor = Really Red not working?

Asked by
tttvbb 2
4 years ago
Edited 4 years ago

why is game.Workspace.part.BrickColor = Really Red not working

idk about scripting

0
thanks!!!!! tttvbb 2 — 4y

2 answers

Log in to vote
1
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

Hello, tttvbb!

The reason why it didn't work was because you didn't assign brickcolor to the colour your trying to perceive. Make sure you use BrickColor.new()

BrickColor takes an argument, which is the colour.

Here's the code you were trying to perform

game.Workspace.Part.BrickColor = BrickColor.new("Really red")

if you want to get thergb (red,green,blue) values use this

game.Workspace.Baseplate.Color = Color3.fromRGB(255, 0, 0)

References:

BrickColor document

Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

use

 game.Workspace.Baseplate.BrickColor = Color3.fromRGB(255, 0, 0)

instead

0
no, game.Workspace.Baseplate.Color = Color3.fromRGB(255, 0, 0) royaltoe 5144 — 4y
0
or game.Workspace.Baseplate.BrickColor = BrickColor.new("Really Red") royaltoe 5144 — 4y

Answer this question