At Westonci.ca, we connect you with the answers you need, thanks to our active and informed community. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

trying to make the baseplate red and turn off can collide then the game waits 5 seconds and turns on can collide, making the baseplate green aswell.
would this script work?

local myBasePlate = game.Workspace.Baseplate

local function makeBasePlateRed()
myBasePlate.CanCollide = false
myBasePlate.BrickColor = BrickColor.Red()
end

makeBasePlateRed()

wait(5)
local function makeBasePlateGreen()
myBasePlate.CanCollide = true
myBasePlate.BrickCOlor = BrickColor.Green()

Sagot :

Answer:

Explanation:

yes

but dont forget to call makeBasePlateGreen

maybe you would call it at the end of the program?

by the way you have a typo at the end

make the O lowercase

myBlasePlate.BrickColor = BrickColor.Green()

and then add this to the end

makeBasePlateGreen()

so you call the function and actually use it.