Wiki Page, Programming School: Lesson 3: Object Properties

Wiki Page
2017-04-17T07:22:07-06:00

Objects in Lua and ROBLOX have properties to them. Usually denominated like accessing normal objects, you call them with a period and then the property name. Let's say you want to find the value of a string. You'd call "script.parent.String.Value". You could read that, or set it with an equal sign after. Object functions can not be called on those, usually. If you want to set the X value of a Part to 0, then you could run "script.parent.X = 0". That would set the X value to 0.