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

Why is the baseplate turning black?

Asked by
MAKKU 37
6 years ago
script.Parent.MouseButton1Click:Connect(function()
    game.Workspace.Map.Baseplate.BrickColor = BrickColor.new(Color3.new(script.Parent.BackgroundColor3))
end)

A simple script that is supposed to turn the baseplate brickcolor to the background color of the button. Instead it just turns black.

0
Instead of making a color3 just set the BrickColor to the BackgroundColor3 itself without wrapping it in a Color3.new User#19524 175 — 6y
0
Since Bricks in general just use "BrickColor" through scripts, it tries to turn your buttons RGB color3 numbers into a BrickColor, this just turns out to be black. DemonEyee 55 — 6y

1 answer

Log in to vote
1
Answered by
RAYAN1565 691 Moderation Voter
6 years ago

Make it simpler for yourself and just set them equal to one another:

script.Parent.MouseButton1Click:Connect(function()
    game.Workspace.Map.Baseplate.BrickColor = script.Parent.BackgroundColor3
end)
Ad

Answer this question