Variables in Scripts
Channel:
Subscribers:
6,500,000
Published on ● Video Link: https://www.youtube.com/watch?v=eoWkegwhYZQ
Just like in the Command Bar, you can use variables in Scripts to store values that you can use later. In this tutorial we will reuse code from last tutorial to change a ROBLOX baseplate's color and transparency.
Code used in this tutorial:
local myBaseplate = game.Workspace.Baseplate
myBaseplate.Transparency = 0.5
myBaseplate.BrickColor = BrickColor.Blue()
Other Videos By Roblox
2016-08-04 | Turning Off Lights |
2016-08-04 | Turning On Lights |
2016-08-04 | Scripting a Traffic Light |
2016-08-04 | For Loops |
2016-08-04 | While Loops |
2016-08-04 | Exploding Part |
2016-08-04 | Day/Night Cycle: Street Light |
2016-08-04 | Day/Night Cycle: Looping |
2016-08-04 | Day/Night Cycle: Wait |
2016-08-04 | Day/Night Cycle: Time of Day |
2016-08-04 | Variables in Scripts |
2016-08-04 | Adding a Script |
2016-08-04 | Brick Color |
2016-08-04 | Changing Properties |
2016-08-04 | Basic Math |
2016-08-04 | Variable Names |
2016-08-04 | Variables |
2016-08-04 | Intro to Scripting |
2016-07-27 | Community Spotlight: Office, Temple, Pokeball, Yacht, Animations |
2016-07-05 | ROBLOX Create and Play Tutorial - How to Make a Smooth Terrain Showcase |
2016-06-27 | Community Spotlight: Volt, Agera R, Armor & Wingset, Custom Animation, Oasis Home Showcase |
Tags:
ROBLOX
ROBLOX Studio
Studio
scripting
Lua
minecraft
games
videogame
video game
free game
online game
family game
MMO
game design
Other Statistics
Roblox Statistics For Roblox
Currently, Roblox has 219,354,368 views for Roblox across 928 videos. His channel uploaded over 7 days worth of Roblox videos, roughly 92.45% of the content that Roblox has uploaded to YouTube.