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
3 years ago $0.02 earnedScripting 101: Rotating Coin
1242 -
LIVE
Ouhel
3 hours agoSUNDAY | BATTLEFIELD 6 | O'HELL LIVE | RUMBLE UPDATE
44 watching -
56:20
Steven Crowder
1 day agoEXPLAINED: Is America Headed For a Market Crash?
136K105 -
LIVE
KammieKamz
2 hours agoThe Queen of COD 👑 - BF6 & COD Stream
43 watching -
LIVE
S0lidJ
27 minutes ago🟢Live -S0lidJ - This Game Is A Blast
29 watching -
21:38
Professor Nez
4 hours agoHE'S BACK! Elon Musk EVISCERATES Biden Judge Over Big Balls Verdict
20.4K40 -
LIVE
JdaDelete
13 hours ago $0.05 earnedFinal Fantasy VII Rebirth | The Empire Strifes Back
13 watching -
19:39
TimcastIRL
1 day agoTim Pool Wins $1 Million Bet During Debate Against Liquid Death CEO
236K107 -
LIVE
ttvglamourx
4 hours ago $4.26 earnedHAPPY SUNDAY<3 !DISCORD
110 watching -
13:50
Nikko Ortiz
1 day agoStop Hurting Yourself For Views.
63.4K20