it looks cool but tbh it only half-worked. The ChangeFunction only made it turn Black, Grey, and white, it didn’t change RGB after 10 seconds. Both of the other functions work on their own, they just can’t switch for some reason. im done with it for today and i am going to move onto something else.
edit: renamed it to creation thread bc i will be posting models and gui design as well.
learned parameters and the Connect function, it’s still pretty confusing for me but i’ll get it.
also i am pretty sure my previous code with the baseplate is really wrong and i might have overcomplicated it.
okay it works now. so, i was trying to change the colors going from RGB to BW, and i over complicated it. i tried to make 2 functions and then toggling them after each one had finished. however, in each function there is a loop. so trying to change the function would be pointless bc it would only carry out that action once.
instead, i just put it all into one function that was looped.
Nice to see some else learning. For a simple task have different blocks within the place that will change the baseplate color when touched. Should be easy for you.
local baseplate = game.Workspace.Baseplate
local brickColors = {BrickColor.Red(),BrickColor.Blue(),BrickColor.Green(),BrickColor.Gray(),BrickColor.White()}
function changeColor() --Making the function local doesn't do anything here
while true do
for index,value in pairs(brickColors) do
wait(2)
baseplate.BrickColor = value
end
end
end
changeColor()
This is the same thing but follows the DRY principle better