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
2 years ago
30
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...
-
24:15
Stephen Gardner
21 hours ago🚨New Evidence DESTROYS Gavin Newsom! Trump HITS BACK HARD!!
34.3K260 -
14:59
TimcastIRL
4 hours agoH1-B Immigration ABUSED, You Cannot Import Your Way Out Of US Cultural Decay
35.9K28 -
15:21
Forrest Galante
17 hours agoWorld's Deadliest Predator Up Close (Private Tour)
35.2K4 -
2:49:49
BlackDiamondGunsandGear
14 hours agoBDGG live with DLD After Dark
9.75K2 -
27:43
hickok45
7 hours agoSunday Shoot-a-Round # 263
8.81K6 -
15:17
This Bahamian Gyal
17 hours agoTHEY REALLY hate Donald and Melania Trump!
5.67K12 -
8:37
GBGunsRumble
17 hours agoGBGuns Range Report 11JAN25
4.23K2 -
49:15
Weberz Way
16 hours agoWILD FIRES, LAND GRAB, ARSON, SLEEPER CELLS, WHAT A MESS IN CA!
3.7K1 -
4:13:07
Nobodies Gaming
14 hours ago $13.27 earnedNobodies : Rumble Gaming MARVEL RIVALS TEST
93.1K14 -
4:15:57
Joker Effect
16 hours agoJoker plays... S.T.A.L.K.E.R.2: Heart of Chornobyl
140K43