![]() Usually, command scripts will accept commands, some of which will also accept arguments, which will be separated from each other's and from the command using a separator character (the most commons are the space and the '/' characters). Values are assigned using an equals sign.A command script is a script allowing certain users to perform certain actions in a game by using commands which are usually given through the chat or through a GUI text box usually toggled by a hotkey. 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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |