I need to make a script that will allow me to change a part's color to a specific color in the color wheel, (for example, moss) But either I am doing something wrong or the script won't let me use those kinds of colors.
The script I am using:
script.Parent.Touched:connect(function(hit) script.Parent.BrickColor = BrickColor.Red() -- I can only use basic colors end)
In order for you to use the color moss, you must use BrickColor.New("Moss") as Red works since it is a primary
color
local part = game.Workspace.Part wait(2) part.BrickColor = BrickColor.New("Moss")
with your script,
local part = script.Parent part.Touched:Connect(function() part.BrickColor = BrickColor.New("Moss") end)
instead do
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then script.Parent.BrickColor = Vector3.new(numbers in here)-- this will allow u do any color combination there is end end)