How to script in Roblox Studio in 2024: Episode 8 - Instances

  Рет қаралды 3,173

Avercile

Avercile

Күн бұрын

Пікірлер: 20
@BackstabDW
@BackstabDW 5 ай бұрын
these guides are a life saver. nobody else explains so thoroughly and this organised. thank you
@speeddy_guy
@speeddy_guy 4 ай бұрын
ye true i looked for another person and i was like wth is this bs so i quit but this guy oh i can make a game now i think idk thx avercile
@peanutegg9454
@peanutegg9454 4 ай бұрын
how tf you give these godsend ass tutorials and my guy doesn't even have 40 likes. This is a crime of the highest order, i have nothing but respect for you Aver! Tons of love, my fascination for roblox studio coding will probably not go anywhere but if it does ill make sure to credit ya!
@Boruebork
@Boruebork 4 ай бұрын
He has 40 likes I gave him the 40th
@Hollownugget
@Hollownugget 2 ай бұрын
@@Boruebork 🤓 👆
@forsurenathan
@forsurenathan 5 ай бұрын
print(“Thank you bro my group project game is doing so well!”)
@Sliptic9928
@Sliptic9928 9 ай бұрын
thanks man this series really helped me learn how to script at the age of 13!
@Taswellwastaken
@Taswellwastaken 8 ай бұрын
thank you
@bowsercatloading9193
@bowsercatloading9193 6 ай бұрын
Thanls a lot!
@DJMadara.
@DJMadara. 7 ай бұрын
Hey I need help over a script I tried to do. local explo Instance.new("Explosion") explo.Parent = workspace local function explo() while true do task.wait(1) Instance.new("Explosion") repeat until 6 end end local function explo() while true do task.wait(1) Instance.new("Explosion") repeat until 6 end end So this is the script but it doesnt explode when I run the script and it has to repeat It didnt really turn out like how I wanted, could you tell me why?
@ankurjnr2566
@ankurjnr2566 6 ай бұрын
what exactly do you want the script to do
@Mani43334
@Mani43334 6 ай бұрын
Hey, the reason that your script is not working is because you forgot to put an equal sign between "explo" and Instance.new("Explosion") on line one. Here's how the code on line one should look like. local explo = Instance.new("Explosion") Once you do this, the part should explode on pressing "run." I hope this helps!
@RugyDaBear.
@RugyDaBear. 4 ай бұрын
you can do what your trying to do way easier with while true do task.wait(1) local newpart = Instance.new("Explosion") newpart.Parent = workspace end or for i = 1, 10 do task.wait(1) local newpart = Instance.new("Explosion") newpart.Parent = workspace end
@thessuperrooster5006
@thessuperrooster5006 3 ай бұрын
what are you trying to do lol
@qiNNok
@qiNNok 2 ай бұрын
i dont really understand how that will help me in a game..
@emerald8784
@emerald8784 2 ай бұрын
for a tycoon you can loop a part to spawn with a touched event in a connect function to add money or something
@not4sin
@not4sin 5 ай бұрын
acc make video 15 :(
@rodose345
@rodose345 6 ай бұрын
:)
@reecetilley585
@reecetilley585 4 ай бұрын
Heck yeah, I can finally start doing cool stuff now. Here is a ball spawner I made that spawns balls from the sky forever, and the speed at which it spawns balls can be configured manually within the script by changing timeToSpawn in the function parameters. There are also a few errors, but the error messages it gave me didn't make sense and it worked anyways so yeah. local function ballSpawner(timeToSpawn) local spawnArea = Instance.new("Part") spawnArea.Parent = workspace spawnArea.Anchored = true spawnArea.Position = Vector3.new(0, 50, 0) spawnArea.Shape = Enum.PartType.Ball spawnArea.Size = Vector3.new(5, 5, 5) spawnArea.Transparency = .7 spawnArea.CanCollide = false local function initBall() newPart.Parent = workspace newPart.Anchored = false newPart.Position = Vector3.new(math.random(-1, 1), 50, math.random(-1, 1)) newPart.Shape = Enum.PartType.Ball newPart.Size = Vector3.new(5, 5, 5) end while wait(timeToSpawn) do newPart = Instance.new("Part") initBall() end end ballSpawner(.1) -- .1 means it spawns one ball every tenth of a second. Configure this as you wish Edit: Oh yeah, I forgot to mention I did a bit of research on my own on the documentation for Roblox Lua, and figured out how to use Vector3's, and vaguely how to use Enum's. Btw the documentation is REALLY helpful guys, you can find it by right-clicking on anything in your code, and clicking "Go to declaration". It will tell you everything that you need to know about whatever you right-clicked on and its all just organized so dang well compared to other docs I've seen for other coding languages. Edit 2: I managed to figure out what the errors meant and fixed them. It was a pretty simple fix, just a syntax thing, though I don't really understand why it had to be done the way it wanted it to be done, but ill figure that part out later. I also applied the script to a pre-made part in the workspace so that I could remove that first part of my function, and I also did this in the hopes that I would be able to actively move around the ball spawner as it spawned balls, but I haven't figured out how to do that yet. Edit 3: I FIGURED IT OUT, turns out it was never an issue with my code and it worked perfectly fine, I just had to click run and switch it from client to server. I am assuming that when I was using the move tool while I was playing on the client-side, it wasn't actually updating the new position I moved the ball spawner to, to the server, or something like that, idk man.
How to script in Roblox Studio in 2024: Episode 9 - Events
12:46
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 661 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 30 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 14 МЛН
How to script in Roblox Studio in 2024: Episode 11 - Game #2
20:34
Why I Started Game Dev In My Late 30s
7:32
Game Dev With Michael
Рет қаралды 24 М.
Flyswatting: How to Keep Unfair Fights Interesting
18:15
Squampopulous
Рет қаралды 448 М.
How I Would Start Game Development (If I Started Over)
16:59
Thomas Brush
Рет қаралды 123 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 719 М.
I programmed a PlayStation 1 game engine
11:52
Bandwidth
Рет қаралды 29 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 391 М.
How Fast Can I Fill My Inbox?
13:30
Dev Detour
Рет қаралды 343 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 30 МЛН