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...
-
13:54
Roblox Studio Tutorials
2 years ago $0.06 earnedHow to Make a Gun | Roblox Studio
193 -
14:22
Exploring With Nug
10 hours ago $4.28 earnedThe River Exposed a Secret That No One Was Supposed to See!
34.6K2 -
23:23
MYLUNCHBREAK CHANNEL PAGE
11 hours agoThe Sunken Basilica
77.4K6 -
8:05
Hollywood Exposed
2 hours agoCharlie Sheen STUNS Tucker Carlson With His Shocking Political Confession
1.82K13 -
LIVE
SavageJayGatsby
1 hour ago🔥 Spicy Saturday – Let's Play: Prison Life 2🔥
28 watching -
30:02
The White House
2 hours agoVP JD Vance Delivers Remarks at 250th Anniversary Celebration for the United States Marine Corps
8.35K17 -
3:50:26
GamerGril
5 hours agoShould I Get A Zoob Job 💞Dying Light The Beast💞
11.3K5 -
5:00:18
MattMorseTV
9 hours ago $251.17 earned🔴No Kings "protest" TOTAL CHAOS.🔴
303K490 -
1:28:51
Darkhorse Podcast
7 hours agoCan the internet make you sick? The 297th Evolutionary Lens with Bret Weinstein and Heather Heying
32.2K10 -
1:21:31
Michael Franzese
20 hours agoTrump Derangement Syndrome Is On The Way Out | Live with Michael Franzese
112K127