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 -
7:20:22
Dr Disrespect
12 hours ago🔴LIVE - DR DISRESPECT - TRIPLE THREAT CHALLENGE - WINNING AT EVERYTHING
196K12 -
2:35:33
Chrono
5 hours agoBirthday-eve Stream | Helldivers II
12.8K -
54:40
BonginoReport
1 day agoLABOR DAY SPECIAL! The Best of Nightly Scroll - Nightly Scroll w/ Hayley Caronia (Ep.124)
107K13 -
2:39:21
Joker Effect
3 hours agoReviewing the downfall of Kick Streaming. Kick streamers welcome to Rumble! Stake bombshell found!
20.2K1 -
1:06:10
Russell Brand
12 hours agoThe Greatest Lie Ever Told? - SF625
85.9K107 -
3:25:13
elwolfpr
4 hours agoBlack Ops 6: Rise of the Relentless
7.62K1 -
LIVE
Phyxicx
3 hours agoChillin - For The King - 9/1/2025
17 watching -
LIVE
Spartan
8 hours agoNew Game+ on E33, then back to Halo Grind
72 watching -
7:12:18
GrimmHollywood
9 hours ago🔴LIVE • GRIMM HOLLYWOOD • SKATE EARLY ACCESS • BRRRAP PACK • READY OR NOT •
18.9K4