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
62
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...
-
13:54
Roblox Studio Tutorials
2 years ago $0.06 earnedHow to Make a Gun | Roblox Studio
205 -
1:14:15
Sean Unpaved
2 hours agoAaron Rodgers & Steelers BOUNCE BACK In WIN vs. Dolphins! | UNPAVED
7.94K3 -
LIVE
Badlands Media
11 hours agoGeopolitics with Ghost Ep. 65 - December 16, 2025
1,303 watching -
1:49:22
Steven Crowder
5 hours agoCandace & Erika: What The Meeting Really Says About Conservative Media
406K335 -
16:28
Adam Does Movies
2 hours ago $0.26 earnedIT: Welcome To Derry Episode 8 Recap - What A Finale!
10.5K -
LIVE
LFA TV
17 hours agoLIVE & BREAKING NEWS! | TUESDAY 12/16/25
2,072 watching -
1:01:57
VINCE
6 hours agoThis Could Win Us The Midterms | Episode 189 - 12/16/25 VINCE
243K209 -
1:47:47
The Mel K Show
3 hours agoMORNINGS WITH MEL K- The End of Zero Sum Game Theory Thinking Has Arrived - 12-16-25
27.3K3 -
1:30:14
The Shannon Joy Show
3 hours agoSJ LIVE Dec 16 - Susie Wiles Spills The Tea * TACO Trump Flees California After Judge Orders Him To Remove Troops! Plus The Bitcoin Collapse & AI Bubble W/ Fin-Analyst Jack Gamble!
31.5K5 -
58:33
TheAlecLaceShow
3 hours agoBrown University | Rob Reiner | Guests: Senator Rick Scott & Sec. Linda McMahon | The Alec Lace Show
7.05K