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...
-
9:46
Roblox Studio Tutorials
3 years agoScripting 101: Functions (Part 3) Click Detector Event with Function
64 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
225 watching -
33:02
DeVory Darkins
6 hours ago $31.89 earnedComey INDICTED by grand jury in shocking announcement by DOJ as Trump claims MAJOR VICTORY
34.2K91 -
2:06:23
Inverted World Live
7 hours agoEpstein Worked for CIA According to OMG Reporting | Ep. 114
127K37 -
3:14:39
TimcastIRL
8 hours agoTrump DOJ Indicts James Comey, The ARRESTS Have BEGUN | Timcast IRL
316K362 -
7:54:14
SpartakusLIVE
9 hours ago#1 Hulking MASS squashes NOOBS for viewers’ DELIGHT
69.8K2 -
1:32:21
The Charlie Kirk Show
8 hours agoTHOUGHTCRIME Ep. 98 — The Comey Indictment? Antifa Agenda? Charlie and the Cubs?
122K57 -
1:04:56
Sarah Westall
8 hours agoPolitical Assassinations, Targeted Hit Lists - Manufactured Chaos w/ Harley Schlanger
77K12 -
1:11:31
Flyover Conservatives
14 hours agoThe “J Walker” Secret: One Daily Habit That Shifts an Entire City - Tammy Hotsenpiller | FOC Show
66.9K4 -
2:12:02
Mally_Mouse
11 hours ago🎮Throwback Thursday! Let's Play: Wii Sports Resort!
54.7K2