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 13:54Roblox Studio Tutorials2 years ago $0.06 earnedHow to Make a Gun | Roblox Studio194
- 	
				 LIVE LIVEOutspoken with Dr. Naomi Wolf58 minutes ago"The Devil His Due"38 watching
- 	
				 1:02:27 1:02:27VINCE3 hours agoA Very Trump Halloween | Episode 159 - 10/31/25108K44
- 	
				 LIVE LIVEBadlands Media10 hours agoBadlands Daily: October 31, 20252,714 watching
- 	
				 1:34:28 1:34:28Graham Allen3 hours agoSCARY: Kamala Had MELT DOWN Over Trump!! Does LSU Hate Charlie Kirk?! + Top Halloween Movies Of ALL TIME!!73.8K37
- 	
				 LIVE LIVECaleb Hammer1 hour agoShe Blames MAGA For Her Debt | Financial Audit269 watching
- 	
				 LIVE LIVEThe Big Migâ„¢3 hours agoWhat To Give The Man Who Has EVERYTHING!5,129 watching
- 	
				 1:32:16 1:32:16Benny Johnson2 hours agoSHOCK: Massive Food Stamp FRAUD Exposed: 59% of Welfare are Obese Illegal Aliens!? Americans RAGE…22K49
- 	
				 2:59:52 2:59:52Wendy Bell Radio7 hours agoAmerica Deserves Better38.5K73
- 	
				 22:01 22:01DEADBUGsays3 hours agoDEADBUG'S SE7EN DEADLY HALLOWEENS14.6K5