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...
-
9:46
Roblox Studio Tutorials
3 years agoScripting 101: Functions (Part 3) Click Detector Event with Function
62 -
LIVE
StoneMountain64
3 hours agoBattlefield's Easter Egg Phantom Project is STILL ALIVE
185 watching -
LIVE
LFA TV
10 hours agoLFA TV ALL DAY STREAM - WEDNESDAY 9/3/25
1,666 watching -
LIVE
freecastle
6 hours agoTAKE UP YOUR CROSS- Love...Light...TRUTH!
173 watching -
1:50:29
The Quartering
3 hours agoEpstein Victims To NAME People, Mutiny Over RFK Jr, Trump Turns On Warp Speed?
120K36 -
LIVE
Film Threat
21 hours agoMARVEL ZOMBIES! PLUS DEXTER RESURRECTION | Hollywood on the Rocks
87 watching -
1:06:51
Jeff Ahern
2 hours ago $0.50 earnedNever Woke Wednesday with Jeff Ahern
12.5K -
13:43
The Kevin Trudeau Show Limitless
7 hours agoClassified File 3 | Kevin Trudeau EXPOSES Secret Society Brainwave Training
24K4 -
10:04
Freedom Frontline
4 hours agoBernie Sanders EXPLODES After Starbucks CEO FIRES BACK With Truth
2.77K6 -
DVR
SportsPicks
4 hours agoCrick's Corner: Episode 75
7.91K