Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.

Scripting 101: Functions (Part 2) | Roblox Studio | 2022
3 years ago
59
In this Roblox development video I go over return values for functions. Additionally, I introduce the for loop. Since this is a continuation of the last video, I provide the script below from "Functions (Part 1)". Copy it, create a "script" in your workspace, and you will have everything you need.
------------ Steps --------------------------------
local function makeStep(y, z)
wait(.2)
local part = Instance.new("Part", workspace)
part.Position = Vector3.new(0, y, z)
part.Size = Vector3.new(10, .5, 3)
part.Anchored = true
part.TopSurface = Enum.SurfaceType.Smooth
part.BottomSurface = Enum.SurfaceType.Smooth
part.BrickColor = BrickColor.Random()
end
wait(6)
makeStep(2, 3)
makeStep(4, 6)
makeStep(6, 9)
makeStep(8, 12)
Loading comments...
-
6:58
Roblox Studio Tutorials
3 years agoScripting 101: Touched Event | Roblox Studio | 2022
47 -
5:52:26
Dr Disrespect
8 hours ago🔴LIVE - DR DISRESPECT - CRONOS: The New Dawn - FIRST IMPRESSIONS
97.6K13 -
1:30:44
Roseanne Barr
6 hours agoOn the Wrong Side of the Algorithm | The Roseanne Barr Podcast #114
90.9K43 -
13:53
TundraTactical
4 hours ago $1.00 earnedFudd Finder : 11 Questions Second Amendment Questions (And Roasts) to Ask Your Friends
22.3K -
LIVE
Wayne Allyn Root | WAR Zone
6 hours agoWAR Zone LIVE | 5 SEPTEMBER 2025
123 watching -
1:39:50
The White House
6 hours agoPresident Trump Makes Announcements, Sep. 5, 2025
39K30 -
2:28:08
Red Pill News
4 hours agoBombshell Biden Docs Invalidate Autopen Pardons on Red Pill News Live
42.4K28 -
9:36
Silver Dragons
4 hours agoGold Price NEW ALL TIME HIGH - $5,000 GOLD NEXT?
18.3K6 -
LIVE
LFA TV
13 hours agoLFA TV ALL DAY STREAM - FRIDAY 9/5/25
694 watching -
13:43
The Kevin Trudeau Show Limitless
2 days agoClassified File 3 | Kevin Trudeau EXPOSES Secret Society Brainwave Training
97.3K19