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...
-
6:58
Roblox Studio Tutorials
3 years agoScripting 101: Touched Event | Roblox Studio | 2022
47 -
DVR
IsaiahLCarter
8 hours ago $2.06 earnedCharlie Kirk, American Martyr (with Mikale Olson) || APOSTATE RADIO 028
32K -
16:43
Mrgunsngear
11 hours ago $2.22 earnedKimber 2K11 Pro Review 🇺🇸
18.2K11 -
13:40
Michael Button
1 day ago $0.94 earnedThe Strangest Theory of Human Evolution
17.4K16 -
10:19
Blackstone Griddles
1 day agoMahi-Mahi Fish Tacos on the Blackstone Griddle
12.4K3 -
23:51
Jasmin Laine
1 day ago“Stop Wasting My Time!”—Trump's BRUTAL WARNING To Canada As Poilievre ROASTS CBC LIVE
10.1K26 -
9:54
Millionaire Mentor
1 day agoNBC Host EXPOSES JB Pritzker For Saying This About Trump
5.86K9 -
1:35:39
SB Mowing
2 days agoIt took the WHOLE NEIGHBORHOOD to uncover this yards SHOCKING SECRET
91.2K62 -
12:52
ROSE UNPLUGGED
1 day agoFrom Vision to Legacy: Charlie Kirk
57.2K21 -
1:14:22
Jeff Ahern
9 hours ago $11.82 earnedThe Sunday Show with Jeff Ahern
83.2K36