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
62
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...
-
12:48
Roblox Studio Tutorials
2 years ago $0.02 earnedKnockback | Roblox Studio
2743 -
LIVE
Side Scrollers Podcast
2 hours agoKaceytron Publicly Humiliated by H3H3 + Sabrina Carpenter/White House FEUD + More | Side Scrollers
1,066 watching -
LIVE
Sean Unpaved
1 hour agoArch Manning & Texas ELIMINATED From College Football Playoff Contention | UNPAVED
116 watching -
5:58
Buddy Brown
4 hours ago $0.35 earnedAngel CAUGHT ON CAMERA Saves Street Preacher from ATTACK! | Buddy Brown
3877 -
LIVE
The Charlie Kirk Show
1 hour agoBlackpilled Zoomers + Charlie's Sabbath + Minnesota Meltdown | Bowyer, Turek, Glahn | 12.3.2025
2,864 watching -
2:01:57
Steven Crowder
4 hours agoVintage MAGA: Trump's Epic Somalia Rant Isn't Racist - It's Irrefutable
243K191 -
12:23
The Illusion of Consensus
3 hours agoThe Moment Dave Smith was Accused of Being A Holocaust Denier by Alex Berenson
121 -
1:06:14
The Rubin Report
2 hours ago‘The View’ Crowd Gets Confused as Whoopi Contradicts Facts
16.7K29 -
2:32:06
LadyDesireeMusic
3 hours ago $0.17 earnedLive Piano Music & Convo - Warm & Cozy
4.15K1 -
1:17:36
vivafrei
3 hours agoRobert Barnes Before Court of Appeal in Brook Jackson's Qui Tam Fraud Lawsuit Against Pfizer
22.1K8