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
2813 -
42:06
Rpurham
19 hours agoSpecial guest: Sam Anthony, CEO & Founder, [your] News
25 -
15:23
Standpoint with Gabe Groisman
17 hours agoDual Citizenship Coming to an End? US Senator Bernie Moreno
61.1K18 -
1:22:19
FreshandFit
10 hours agoGirls Try To Get 60 Year Old Granny To Do OF
352K126 -
3:05:53
Decoy
11 hours agoNobody is talking about this..
90.2K25 -
1:57:00
Badlands Media
17 hours agoBaseless Conspiracies Ep. 163: False Memories, MKUltra & the Machinery of Disbelief
85.3K23 -
5:34:44
Drew Hernandez
1 day agoERIKA KIRK & CANDACE OWENS CEASEFIRE SUMMIT?
50.4K29 -
1:37:33
efenigson
19 hours agoUnapologetically Yourself: The Courage to Speak & Be Different - Zuby | Ep. 111
65.7K7 -
1:07:27
Inverted World Live
10 hours agoAI Person of the Year & Robot Wolves in Japan | Ep. 153
90.3K12 -
3:03:11
TimcastIRL
11 hours agoRob Reiner MURDERED, Son Arrested, Trump Faces Backlash Over Comments | Timcast IRL
308K177