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
2543 -
7:56
Faith Frontline
12 hours agoCIA Spy CONFIRMS Bible Prophecy Is Playing Out Right Now
59 -
1:25:26
Coin Stories with Natalie Brunell
20 hours agoCan the State Crush Bitcoin? And the Next Big Financial Crisis with Dave Collum
18.6K1 -
26:38
DeVory Darkins
1 day ago $6.65 earnedNewsom suffers CRUSHING LOSS after SCOTUS ruling hands Trump HISTORIC WIN
8.32K71 -
11:23
Nikko Ortiz
1 day agoArmy Tik Tok Fails Go Hard
66K7 -
2:27:44
Side Scrollers Podcast
20 hours agoSilksong is “TRANS CODED” + YouTube GASLIGHTS Creators + Asmongold Stops Streaming | Side Scrollers
10.4K19 -
16:08
GritsGG
11 hours agoRank 1 Warzone Player VS Stream Snipers & a Cheater!
12K1 -
1:39:16
The HotSeat
15 hours ago👉 STOP Blaming Each Other — Look at the Media!
27.3K25 -
22:34
The Pascal Show
11 hours ago $1.78 earnedFEDERAL CHARGES?! Iryna Zarutska's Attacker Gets Hit With Federal Charges After Fatal Train Attack
12.1K25 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
246 watching