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...
-
8:25
Roblox Studio Tutorials
2 years ago $0.02 earnedScripting 101: Rotating Coin
1222 -
4:34:26
Akademiks
7 hours agoICEMAN EPISODE 3
148K -
2:04:10
Inverted World Live
9 hours agoThe Robots Are Here | Ep. 103
61.6K16 -
1:21:53
Man in America
17 hours agoInflation, Debt & War: The 2032 Crash Cycle Is Here—Nations Will FALL w/ Martin Armstrong
58.1K20 -
1:53:48
Adam Does Movies
16 hours ago $3.13 earnedTalking Movies + Ask Me Anything - LIVE
24.1K3 -
2:55:43
TimcastIRL
8 hours agoTrump DOJ To Ban Trans People From Owning Guns After Catholic School Shooting | Timcast IRL
187K119 -
3:21:36
The Quartering
7 hours agoBaldur's Gate 3 First Playthrough!
50K8 -
6:34:42
Rallied
10 hours ago $9.03 earnedWarzone Solo Challenges
80K2 -
57:40
MattMorseTV
9 hours ago $11.99 earned🔴Trump just SHATTERED the RECORD.🔴
57.1K98 -
43:39
WickedVirtue
6 hours agoLate Night Spooky Plays
41.7K5