Properties - Roblox Beginners Scripting Tutorial #5 (2025)

Share

Summary

This tutorial explains how to change properties of objects in Roblox Studio using scripts. It covers identifying objects, changing their transparency and material, and using variables for better readability, concluding with a challenge for viewers.

Highlights

Introduction to Properties
00:00:00

The video revisits the properties window in Roblox Studio, which allows users to change object attributes like color. It then introduces the concept of changing these properties programmatically using scripts while the game is running, offering more dynamic control.

Setting up a Script to Change Properties
00:01:50

The tutorial guides viewers to disable a previous script, create a new script named 'properties,' and clear its default content. The goal is to locate and modify the 'baseplate' object within the game using this new script.

Locating Objects with Scripts
00:02:30

It explains how to locate specific objects in the game's hierarchical structure. To find the baseplate, the script uses 'game.Workspace.Baseplate,' traversing through the game data model, then the Workspace folder, and finally to the Baseplate object.

Changing Transparency Programmatically
00:04:24

The video demonstrates how to change the 'Transparency' property of the baseplate. By adding '.Transparency = 1' to 'game.Workspace.Baseplate,' the baseplate becomes fully transparent when the game runs, showcasing real-time property modification.

Changing Material and Partial Transparency
00:05:48

Further, the tutorial shows how to change the baseplate's material to 'Brick' using 'dot material = "Brick"' and adjust the transparency to '0.25'. This demonstrates how to apply different property types and observable changes in the game.

Using Variables for Readability
00:07:22

To make the code more readable, the video introduces creating a local variable for the baseplate: 'local baseplate = game.Workspace.Baseplate'. This allows referring to the baseplate simply as 'baseplate' instead of the full path, improving code clarity.

Changing Boolean Properties and Conclusion
00:08:21

The tutorial briefly touches on changing Boolean properties, such as 'CastShadow' to 'false'. The video concludes by encouraging viewers to practice changing more properties on the baseplate or other custom parts and share their code.

Recently Summarized Articles

Loading...