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...
-
12:48
Roblox Studio Tutorials
2 years ago $0.02 earnedKnockback | Roblox Studio
2573 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
114 watching -
LIVE
SilverFox
14 hours ago🔴LIVE - ARC RAIDERS SERVER SLAM TEST! DAY 2!
33 watching -
2:03:11
LFA TV
16 hours agoTHE RUMBLE RUNDOWN LIVE @9AM EST
103K13 -
LIVE
MrR4ger
2 hours agoWERE NOT GAY, WE JUST PLAY ARC RAIDERS W/ TONYGAMING AND AKAGUMO
32 watching -
LIVE
Retro Rewind Pod
12 hours ago📺🌄 SATURCADE ADVENTURES is back! Saturday Morning Cartoon Feels and Gaming Fun
9 watching -
43:57
Daniel Davis Deep Dive
3 hours agoDeep Dive Intel Briefing /Lt Col Daniel Davis
3.83K3 -
LIVE
blackfox87
4 hours ago🟢 SUBATHON DAY 16 | Premium Creator | #DisabledVeteran
128 watching -
1:10:13
Wendy Bell Radio
7 hours agoPet Talk With The Pet Doc
13.4K16 -
1:11:37
Mike Rowe
8 days agoDoes China Control The NBA? | Enes Kanter Freedom #453 | The Way I Heard It
39.8K66