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...
-
12:48
Roblox Studio Tutorials
2 years ago $0.02 earnedKnockback | Roblox Studio
2543 -
LIVE
Caleb Hammer
2 hours agoThe First LGBT Divorce On Financial Audit
111 watching -
LIVE
Badlands Media
1 hour agoBadlands Daily: September 3, 2025 (#2)
3,311 watching -
LIVE
Jim Jordan
1 hour agoEurope’s Threat to American Speech and Innovation
482 watching -
LIVE
The State of Freedom
5 hours agoFLF: #16 Delivering the Truth Comes at a Cost w/ Joe Hoft
17 watching -
31:01
Rethinking the Dollar
1 hour agoWe're In A NEW Monetary Reality! Xi & Putin Knows How This ENDS | Morning Check-In: Let's Talk...
5.97K -
LIVE
House Committee on Energy and Commerce
2 hours agoExamining Opportunities to Advance American Health Care through the Use of AI Technologies
18 watching -
1:04:12
Crypto Power Hour
3 hours ago $0.19 earnedSmart Contracts & Fintech 101
4.94K5 -
45:55
Randi Hipper
1 hour agoBITCOIN HOLDS CRITICAL LEVEL! NEXT MOVE DETERMINES EVERYTHING
5.38K -
3:10:58
The Pete Santilli Show
12 hours agoMORNING STREAM Wednesday September 3, 2025 ▐ THE PETE SANTILLI SHOW & SANTILLI REPORT 9/2
9.7K1