Started scripting about a week ago and what I’m trying to do is make it to where when the red part (X) is touched, the other parts will start flashing about 4 different colors of my choice at random & simultaneously.
Ideally, I need the colors to be [31, 56, 36] , [49, 89, 57] , [59, 107, 68] and [29, 52, 33]
When I was trying this, the only thing I could think about doing was to make a script (parent = X) for each part labeled a-p but I know there’s an easier more effective way to do it.
Here is the script for one individual part: (a)
script.Parent.Touched:Connect(function()
while true do
workspace.flashingparts.a.Color = Color3.fromRGB(59, 106, 67)
wait(1)
workspace.flashingparts.a.Color = Color3.fromRGB(47, 85, 54)
wait(1)
end
end)
(Tried doing Color3.fromRGB, but I don’t think it’s necessary.)
(Ignore the colors I use in the script, I was just testing it out)
Also, as you can see in the video, it will fire once when I touch the red part the first time, and then fire a bunch more times the longer I stand on it. I just need it to happen once and never again.