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...
-
12:48
Roblox Studio Tutorials
2 years ago $0.02 earnedKnockback | Roblox Studio
2743 -
1:00:13
Timcast
2 hours agoTrump DUNKS On Somalis, Calls For Ilhan Omar To Be DEPORTED
120K17 -
2:30:27
Steven Crowder
4 hours agoNick Fuentes Sits Down with Crowder
412K845 -
1:07:12
The Rubin Report
3 hours agoHost Gets Visibly Angry as Scott Bessent Rips Him to Shreds in Front of NY Times Crowd
46.9K14 -
4:42
Buddy Brown
3 hours agoThe Most GHETTO Chick-fil-A Customer EVER! | Buddy Brown
5.07K7 -
1:11:14
iCkEdMeL
2 hours ago $1.21 earned🔴 BREAKING: Brian Cole Identified as DC Pipe Bomb Suspect — FBI Arrest
22.1K11 -
LIVE
LFA TV
16 hours agoLIVE & BREAKING NEWS! | THURSDAY 12/04/25
2,815 watching -
LIVE
TheAlecLaceShow
1 hour agoAlec Goes To Capitol Hill for RSC New Media Event | Full Coverage | The Alec Lace Show
31 watching -
59:25
VINCE
4 hours agoFINALLY: Jan 6th Pipe Bomber Arrested? | Episode 181 - 12/04/25 VINCE
237K190 -
1:11:54
Chad Prather
3 hours agoCandace Owens ACCEPTS TPUSA’s Debate Invitation + Dem Rep Instructs Military To REMOVE Trump?!
56.8K14