Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why do i get an error when changing the color?

Im making a game with a really big dance place. The floor has lots of squares that change colors a lot. I spent a few weeks working on the script and I finally finished it, but when I pressed play, it says this.

color is not a valid member of Part "Workspace.dancefloors.floor1" - Server - Script:1205

What does it mean? I changed the color with the Color3.new which I saw from the Alvin blox tutorial and it even showed the color boxes that you can click so i don't think thats the issue. Here is my script

uhh it says my question is too long thats weird XD but I found another website that I can put the script on. Maybe this will be short enough to post now https://pastebin.com/KfKnABSA

1 answer

try Color instead of color or use BrickColor instead

4 comments

0

ok. i will try but it will take a while to change all of it

0

danceFloor1.Color = Color3.new(0.148044, 0.9746898, 0.41368) danceFloor2.Color = Color3.new(0.159498, 0.4428276, 0.58001) danceFloor3.Color = Color3.new(0.589458, 0.8370263, 0.11817) danceFloor4.Color = Color3.new(0.514449, 0.1282867, 0.54975) danceFloor5.Color = Color3.new(0.755492, 0.8545105, 0.09571) danceFloor6.Color = Color3.new(0.070913, 0.7215167, 0.28353) danceFloor7.Color = Color3.n

0

is this right so far? i don't want to do the entire script if it will give another error

0

Workspace.dancefloors.floor1. if you change floor1 and it shows a different error thats not floor1 then it works

This discussion is preserved as it was. New answers, comments, and votes are closed.