

Values are assigned using an equals sign. Just like script.Parent, properties are accessed using a dot.

Changing the CanCollide property of the cube If you set it to false, users will fall through the platform. The CanCollide property determines if other parts (and users) can pass right through the part. Lua is a multi-platform language (that means it works on Mac, Windows, and other operating systems) and is commonly used. Changing the Transparency property of the cube Transparency can be a value between 0 and 1, where 1 is fully transparent and therefore invisible. Remember that you can see a part's properties if you select it and look at the Properties window.Ī part can be made invisible by changing the Transparency property. Parts have various properties that can be used here. When the platform disappears, it needs to be invisible and users need to fall through it - but you can't just destroy the platform since it needs to reappear later. You'll learn more about passing information to functions in a later course. The parentheses are for including additional information as needed. The code for a function goes between the first line and end.

The first new line declares the function - it indicates the start of the function and names it as disappear.
