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 -
9:34
Sideserf Cake Studio
1 day ago $1.83 earned484 Lego Bricks. 1 Hyperrealistic Cake.
14.4K3 -
22:42
marcushouse
1 day ago $6.98 earnedMassive Surprises From Starship Flight 11 Revealed! 🤯
18.9K10 -
14:08
Forrest Galante
12 hours agoPrivate Tour Of the World's Most Expensive Pet Show
139K11 -
13:50
Nikko Ortiz
22 hours agoStop Hurting Yourself For Views.
25.3K12 -
2:07:06
Side Scrollers Podcast
1 day agoDiaper Furry Streamer Gets ONLY ONE DAY Suspension + Hasan PLAYS VICTIM + More | Side Scrollers
51.7K23 -
56:38
DeProgramShow
2 days agoDeprogram with Ted Rall and John Kiriakou: "Jake Tapper on the Global Hunt for an Al Qaeda Killer”
15.3K5 -
1:43:07
The Michelle Moore Show
2 days ago'The 12 Open Doors' Guest, Steve Jarvis: The Michelle Moore Show (Oct 17, 2025)
24.4K13 -
LIVE
Lofi Girl
3 years agolofi hip hop radio 📚 - beats to relax/study to
81 watching -
1:45:06
Badlands Media
1 day agoDevolution Power Hour Ep. 399: No Kings, Antifa’s Collapse & Trump’s Year of Peace
294K120