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
61
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...
-
13:54
Roblox Studio Tutorials
2 years ago $0.06 earnedHow to Make a Gun | Roblox Studio
198 -
3:01:07
Wahzdee
4 hours agoTHE "I WON'T QUIT" STREAM... FAILED | Tarkov 1.0 Broke Me | Playing Liar's Bar
15.3K4 -
10:46
China Uncensored
19 hours agoHasan Piker Finds Out the Hard Way...
21.9K22 -
59:40
American Thought Leaders
16 hours agoHe Said No to Billions from China. Now They’re After Him | Declan Ganley
21.7K10 -
4:58
GreenMan Studio
15 hours agoTHE RUMBLE COLLAB SHOW EP.4 W/Greenman Reports
16.9K4 -
8:05
Freedom Frontline
18 hours agoAOC DISRESPECTS Byron Donalds And Gets DESTROYED Immediately
14.7K7 -
11:53
GBGunsRumble
16 hours agoGBGuns Range Report 15NOV25
10.9K1 -
21:37
Forrest Galante
11 hours ago6 Deadly Sea Monsters That Actually Exist
92K4 -
LIVE
Lofi Girl
3 years agolofi hip hop radio 📚 - beats to relax/study to
365 watching -
43:24
ThisIsDeLaCruz
1 day ago $9.39 earnedWhat Fans Never Knew About Falling In Reverse’s Guitarist
29K