Wave Based Attacks - Tower Defense Tutorial #2

  Рет қаралды 744,949

GnomeCode

GnomeCode

Күн бұрын

We continue our Tower Defense series by taking our single zombie and incorporating him into a wave based fighting machine!
DISCORD ► / discord
TWITTER ►@gnomecodeRBLX
TIMESTAMPS►
0:00 Intro
0:36 Creating module scripts
2:58 Creating simple map
4:37 Spawning Mobs
8:34 Moving Spawned Mobs
9:53 Spawning a Wave
10:30 Moving in unison
16:45 Zombie Factory
17:18 Delaying each wave
19:30 Outro

Пікірлер: 5 800
@ThehomelessZar
@ThehomelessZar 2 жыл бұрын
Omg this has been such an adventure I'm starting to get the hang of scripting in Roblox studio, but you have been there for me forever almost I've been watching videos like these forever thank you so much for helping everybody with these videos!
@DevReep-kw2kq
@DevReep-kw2kq 2 жыл бұрын
he is good guy
@Jstsmmedo
@Jstsmmedo 2 ай бұрын
You're right!
@Giltom09
@Giltom09 10 ай бұрын
U need more subs man, this stuff is so helpful
@Rez_R
@Rez_R 8 ай бұрын
I like these kinds of videos cause i can see the progress from a simple baseplate to a functioning game, im not even a developer
@CymmicalRobloxW
@CymmicalRobloxW 8 ай бұрын
Thank you so much GnomeCode, you have one of the best tutorials to make TD games. This all worked all because of you Thank you so much!!
@Kimkom123
@Kimkom123 11 күн бұрын
So can u pls type the mob script in here just for me is it not working and im trying like 3 hours 😅it would be great when u do this
@jasontek6638
@jasontek6638 9 күн бұрын
So apparently this does not work in newer versions based on the experience the newer people are having
@cornerwedge2876
@cornerwedge2876 2 жыл бұрын
really helpful, this entire tutorial so far has been going great and it looks very promising, and everything works really well. Thanks!
@SRTdowned
@SRTdowned 2 жыл бұрын
You are a really good coder keep up the good work!
@ag.hoopin
@ag.hoopin 7 ай бұрын
How do I fix this "ServerScriptService.main.mob:9: attempt to index nil with 'CFrame'
@Gnarpyewe
@Gnarpyewe 20 күн бұрын
I love how its really basic and easy to learn, i love it
@NinjafoxYT791
@NinjafoxYT791 4 ай бұрын
This series deserves a sub :)
@UltimanteTheCool
@UltimanteTheCool 2 жыл бұрын
I like how he doesnt just create tutorials and tell you how to do things... he teaches you as well and shows you common mistakes people do. thats awesome
@restinpeacekilo
@restinpeacekilo 2 жыл бұрын
Did you just say “do do”
@benjamincrocetti1305
@benjamincrocetti1305 2 жыл бұрын
But whit the videos you can do a tower defense games?
@UltimanteTheCool
@UltimanteTheCool 2 жыл бұрын
@@restinpeacekilo yes to do*
@restinpeacekilo
@restinpeacekilo 2 жыл бұрын
@@UltimanteTheCool you should edit and change it to "to do"
@hellodood9547
@hellodood9547 2 жыл бұрын
ikr, this guy is so underated
@MwSama
@MwSama 2 жыл бұрын
I love how u cleanly coded everything! Just perfection!
@GodOfSpeedruns740
@GodOfSpeedruns740 5 ай бұрын
Great Series! (Subscribed after first video!)
@SkibidiUniverse24
@SkibidiUniverse24 4 ай бұрын
do u know how to fix this? HumanoidRootPart is not a valid member of Model "Enemy"
@randomcat1224
@randomcat1224 4 ай бұрын
​@@SkibidiUniverse24 first off, you have to go get some better common sense secondly, learn how to rig models third, its fixed nothing else
@Aqua846_
@Aqua846_ 8 ай бұрын
genuinly this is the best tuturial ever
@ArseneKichi
@ArseneKichi 2 жыл бұрын
started to play alot of td games so thanks to your td tutorial series I might be able to make my own! :D
@darel28
@darel28 2 жыл бұрын
yes
@lilideclercq5530
@lilideclercq5530 2 жыл бұрын
Sey
@modernrealms
@modernrealms 2 жыл бұрын
Ice wanted to for a while lol
@Yugoslavian_Animator
@Yugoslavian_Animator 5 ай бұрын
Best tutorial i ever seemed
@Gen1us707
@Gen1us707 15 күн бұрын
i never noticed the orientation indicator! Thats gonna be so useful for some upcoming games!
@epicgamer11717
@epicgamer11717 9 ай бұрын
ive noticed i actually started to understand how to code, this series made me wanna start making games and i when i tried i just copied the code he gave me and had no idea what to do, these days i actually understand what they do which is making me proud
@MMGProductionss
@MMGProductionss 9 ай бұрын
How do I fix a script timeout
@Neshy_YT
@Neshy_YT 6 ай бұрын
@imyofarder
@imyofarder 3 ай бұрын
@@Neshy_YT
@afterpartyslays
@afterpartyslays 3 ай бұрын
@@MMGProductionss if your doing it in "while true do" (havent watched the vid) you can put wait() at the end and it should fix it
@planetgaming5979
@planetgaming5979 Жыл бұрын
really high quality tutorial and i learnt a lot. Also his basic tutorial is really in depth
@Theblademaster5029
@Theblademaster5029 7 ай бұрын
Man, this guy is very good tutorial maker😇
@PedroTDS
@PedroTDS 2 ай бұрын
tysm bro after i do this game i will wach other tutorials!!
@totallynotxwblizzard2605
@totallynotxwblizzard2605 2 жыл бұрын
I love these tutorials! Please continue uploading videos like these.
@baymaxbizarreadventure5652
@baymaxbizarreadventure5652 2 жыл бұрын
nice profile picture
@HeyitsXR2LIVE
@HeyitsXR2LIVE 2 жыл бұрын
the thing i hate about them is he dosen't explain errors. I did everything and it wont work i even copied the code didnt work
@Bro-vs5mk
@Bro-vs5mk 2 жыл бұрын
@@HeyitsXR2LIVE the only problem i have it that it moves to fast
@ShadowDragon-hb3yv
@ShadowDragon-hb3yv 2 жыл бұрын
@@Bro-vs5mk i find it helpful every time he writes a new line to pause and write, it does take awhile but it works
@Bro-vs5mk
@Bro-vs5mk 2 жыл бұрын
@@ShadowDragon-hb3yv yeah
@immuno9015
@immuno9015 Жыл бұрын
10:06 saving my time, Awesome tutorial!
@AnmGeek
@AnmGeek 7 ай бұрын
This is my second video and I'm learning so much!!! Thank you for the tips, it helps me get one step closer to my dream of becoming a famous developer!! YOU DESERVE MORE SUBS
@dr.shwetatomar1923
@dr.shwetatomar1923 6 ай бұрын
Hope you succeed!
@Peaceful_Bacon
@Peaceful_Bacon 5 ай бұрын
Thanks so much! it helped alot
@Annithro
@Annithro 2 жыл бұрын
Amazing job on the tutorials, Keep the amazing work up!
@sul4110
@sul4110 2 жыл бұрын
This series is really great! Unlike other tutorials, when I run into issues, I can fix them easily! Not only that, your explanations and scripts are really simple and easy to understand.
@verybasicchannel
@verybasicchannel 2 жыл бұрын
In 13:21, its instead of identifying the humanoid, it identifies something named humanoid(which doesnt exist) in humanoid. Help?
@10szym44
@10szym44 2 жыл бұрын
​@@verybasicchannel did you do mob:WaitForChild("humanoid") or did you do mob:WaitForChild("Humanoid")
@donaterplays5276
@donaterplays5276 2 жыл бұрын
@@10szym44 what of this variants is good?
@donaterplays5276
@donaterplays5276 2 жыл бұрын
Bros, please someone help, without help, I can not continue to do this project..., My zombie DOES NOT MOVEMENT!, he spawns alone, and is completely inactive. Also, tell me how to call the table at the bottom of the screen, which shows your last actions ? Please kind people, help to deal with the problem, otherwise the game will not live, all hope is on you.
@coolestHurensohn195
@coolestHurensohn195 2 жыл бұрын
@@donaterplays5276 its mob:WaitForChild("Humanoid")
@Timraz1
@Timraz1 5 күн бұрын
the best teacher in whole world, i love your videos. You making amazing job
@arkin2263
@arkin2263 8 ай бұрын
To everyone who's mobs arent spawning: 1. Check if you have a map folder. In this video, the folder name is "Grassland" and there should be 3 main things inside: "Path" folder, "Waypoints" folder, and "start" object. 2. Check if you have "start" in your "Grassland" or map folder. The "start" object can be anything. 3. Check if you put the "zombie" or enemy inside a "Mobs" folder in the ServerStorage.
@asadfehduhgrfhu
@asadfehduhgrfhu 8 ай бұрын
Everything I did Correctly but It don't spawn In.
@Baguga.
@Baguga. 8 ай бұрын
i got everything right its still wouldnt spawn the zombies
@asadfehduhgrfhu
@asadfehduhgrfhu 8 ай бұрын
Bro, I found out why, If you have the Zombie called Drooling Zombie, Just Rename it to "Zombie" With a Caps Z@@Baguga.
@arkin2263
@arkin2263 7 ай бұрын
man i have no idea then mine works just fine
@coltiny1265
@coltiny1265 7 ай бұрын
@@arkin2263 how?
@RickAstley1234
@RickAstley1234 Жыл бұрын
this series is really good! better quality than any classes!
@Scout71
@Scout71 9 ай бұрын
Without this guy I wouldve probably failed making a tower defense game
@issacjoestar8046
@issacjoestar8046 2 жыл бұрын
I and others appreciate you taking your time to do all of this GnomeCode, you're a godsend man.
@boogernnboogie6838
@boogernnboogie6838 2 жыл бұрын
the script doesnt work
@SRTdowned
@SRTdowned 2 жыл бұрын
@@boogernnboogie6838 Yes it does check the output of there are any errors
@Joyjohn1012
@Joyjohn1012 Жыл бұрын
@@huller1041 same, for me it just warns me that the mob doesn’t exist even though i have his exact code
@Joyjohn1012
@Joyjohn1012 Жыл бұрын
@@huller1041 i’ve tried 4 times though and no fix
@Joyjohn1012
@Joyjohn1012 Жыл бұрын
@@huller1041 Ok ty bro
@hazelGD-jx9ed
@hazelGD-jx9ed 8 ай бұрын
This took me 30 min so here: Mob Script: local ServerStorage = game:GetService("ServerStorage") local mob = {} function mob.Move(mob, map) local humanoid = mob:WaitForChild("Humanoid") local waypoints = map.Waypoints for waypoint=1, #waypoints:GetChildren() do humanoid:MoveTo(waypoints[waypoint].Position) humanoid.MoveToFinished:Wait() end mob:Destroy() end function mob.Spawn(name, quantity, map) local mobExists = ServerStorage.Mobs:FindFirstChild(name) if mobExists then for i=1, quantity do task.wait(0.5) local newMob = mobExists:Clone() newMob.HumanoidRootPart.CFrame = map.Start.CFrame newMob.Parent = map.Mob coroutine.wrap(mob.Move)(newMob, map) end else warn("Mob not found:", name) end end return mob Main Script: local mob = require(script.Mob) local map = workspace.Your map --- Put your map name. for wave =1, 5 do print("WAVE STARTING:", wave) if wave < 5 then mob.Spawn("Zombie", 3 * wave, map) elseif wave == 5 then mob.Spawn("Zombie", 100, map) end repeat task.wait(1) until #map.Mob:GetChildren() == 0 print("WAVE ENDED") task.wait(1) end
@watkj7
@watkj7 8 ай бұрын
mobs wouldnt spawn
@stud84
@stud84 7 ай бұрын
Thank you i highly appreciate that
@ClatoqFN
@ClatoqFN 6 ай бұрын
ty
@coocookids2515
@coocookids2515 5 ай бұрын
@@watkj7 Same
@OfficialZephR
@OfficialZephR 3 ай бұрын
in line 24 you made it map not map.Mob
@uru4123
@uru4123 Жыл бұрын
I love your tutorials, they are very helpful, and help me learn to script!
@JellyFruit-qs3en
@JellyFruit-qs3en 8 ай бұрын
it doesn't work.
@chricyan778
@chricyan778 2 жыл бұрын
Woah, this is nice; i'm new to scripting and i always wanted to make a td game for like 7 months but never actually finished / released any of them, i tried 2 times and discontinued the first one because i was stuck on the wave system, thanks a lot for this video
@noeshaj
@noeshaj 2 жыл бұрын
bro same:D im glad gnome did this series
@SomeGameDeveloper
@SomeGameDeveloper Жыл бұрын
yeah same im working on one rn
@DarwisyAdyan
@DarwisyAdyan Жыл бұрын
@@SomeGameDeveloper whats the name? ill play it
@deisydejesus2033
@deisydejesus2033 8 ай бұрын
Im also new to scripting. I am learning.
@woopcanjoe456
@woopcanjoe456 9 ай бұрын
Tysm I'll make sure to add credits
@Its_me_Fez
@Its_me_Fez 9 ай бұрын
bro it works LOL and it looks so fun!
@unitedstatesofasparagus9758
@unitedstatesofasparagus9758 Жыл бұрын
my friends are trying to make a tower defense game after tower battles is being discontinued. thank you for this awesome series !
@z0rreal11
@z0rreal11 Жыл бұрын
WAIT WHAT
@unitedstatesofasparagus9758
@unitedstatesofasparagus9758 Жыл бұрын
@@z0rreal11 yep planet got a career therefore its discontinued
@Mary-qt4jq
@Mary-qt4jq 3 ай бұрын
@@unitedstatesofasparagus9758 bro thats why i am here
@SusMystery
@SusMystery 25 күн бұрын
@@unitedstatesofasparagus9758 yeah... );
@glitchgaming6347
@glitchgaming6347 2 жыл бұрын
I love playing tds games and this was the only one that was clear and helpful to make one, so thank you for helping.
@Th3H3ck
@Th3H3ck Ай бұрын
Its a Banger Video with all this Explaining and helpful stuff. My Problem is just that i cant spawn them cause it calls some kind of Nil Value
@Maseracersix
@Maseracersix 8 ай бұрын
great job
@MattysWorldOfficial
@MattysWorldOfficial Жыл бұрын
Hey GnomeCode love this series so far. I have noticed the zombie does not spawn in the spawner and I see I am not the only person with this problem. If you could make a updated version or comment back the newer script that would be great! Thank you. :)
@bored.boring
@bored.boring Жыл бұрын
I’m having this exact same problem. I just hope somebody knows how to fix this.
@aaaaaaaaaaa.a
@aaaaaaaaaaa.a Жыл бұрын
Does it say "Start is not a valid member of Workspace "Workspace"" Edit: i redone this part but my friend deleted the game
@jamesegg7372
@jamesegg7372 Жыл бұрын
@@aaaaaaaaaaa.a not for me, no.
@Aryuatro
@Aryuatro Жыл бұрын
make sure the spawn part is anchored and CanCollide off if so, move that spawn part into your map name folder, and go to the mob script. at 7:18, you can put the code he uses im new to scripting too, so hopefully this works for you
@MattysWorldOfficial
@MattysWorldOfficial Жыл бұрын
I think it’s because Roblox studio has updated
@zee0016
@zee0016 2 жыл бұрын
Noah's Archive recommended you during a stream to help me script my game, I'm not disappointed. Thank you alot for teaching me how to script
@GnomeCode
@GnomeCode 2 жыл бұрын
Woah cool shout out. Welcome aboard!
@Penguinza
@Penguinza 2 жыл бұрын
@@GnomeCode hey, my script won’t spawn the zombie and it says it doesn’t exist
@HR_DL
@HR_DL 2 жыл бұрын
@@Penguinza just rewatch it and make sure u haven't done anything wrong
@Penguinza
@Penguinza 2 жыл бұрын
@@HR_DL my code is *pretty* similar
@MagicMystro
@MagicMystro 2 жыл бұрын
@@Penguinza check to see if all your parts are named right and in the right folder
@joeyboyok40K
@joeyboyok40K 8 ай бұрын
amazing make game !! thank you for tutorial ^^
@rezi00
@rezi00 9 ай бұрын
If the walking path is messed up by having a different walkspeed, just put another waypoint before the waypoint that you are having trouble with.
@MetaBellaOfficial
@MetaBellaOfficial 7 ай бұрын
@ag.hoopin
@ag.hoopin 7 ай бұрын
How do I fix this "ServerScriptService.main.mob:9: attempt to index nil with 'CFrame'
@crevyt1
@crevyt1 6 ай бұрын
you are a hero
@itznotbailey
@itznotbailey 6 ай бұрын
10:34 i’m having trouble, get children is not a valid member of folder workspace.Grassland.Waypoints any help?
@itznotbailey
@itznotbailey 6 ай бұрын
like 8 of the mob script
@Fish_CR
@Fish_CR 2 жыл бұрын
Your incredibly easy to follow along, thank you!
@IdkLukas
@IdkLukas 2 жыл бұрын
Incredible "Easy" huh? When I ran the game at 10:12 the zombies didn't spawn! So much for "Easy"
@m4urivfx
@m4urivfx 2 жыл бұрын
@@IdkLukas The code may be old at this point; I followed along perfectly, even rewatched a few times, and the zombies don't spawn.
@alanyang9815
@alanyang9815 2 жыл бұрын
@@m4urivfx Same
@Misterdog77
@Misterdog77 2 жыл бұрын
Except for when you get a million errors and realise that you've made a dumb mistake
@springtrap4079
@springtrap4079 2 жыл бұрын
@@IdkLukas for me its working
@fierzy_new
@fierzy_new 2 жыл бұрын
I’ve really enjoyed this series… It will really help my tower defense game. If I ever need help this is definitely the channel. Thanks GnomeCode!
@janahari6701
@janahari6701 2 жыл бұрын
How is you're Tower Defense Game called?
@fierzy_new
@fierzy_new 2 жыл бұрын
Tower Defenders
@mobileobbygod2589
@mobileobbygod2589 2 жыл бұрын
@@fierzy_new lies
@mobileobbygod2589
@mobileobbygod2589 2 жыл бұрын
@@janahari6701 mispelled some stuff
@camelmanguy9181
@camelmanguy9181 2 жыл бұрын
Dude, chill
@noobi_123zol-iu4bc
@noobi_123zol-iu4bc 9 ай бұрын
thx very much for this video that was the last thing for my game😀
@skittle74
@skittle74 6 ай бұрын
HELLO MY FELLOW GNOMES never gets old *sniff*
@scott7827
@scott7827 Жыл бұрын
2:15 map script full build 2:48 main script full build 4:36 main script full build part 2 6:16 mob script full build 7:17 mob script full build part 2 9:39 mob script full build part 3 10:08 map script full build part 2 10:50 mob script full build part 4 12:19 mob script fix full build 13:19 bit change of mob script 13:42 map script fix change 14:32 bit fixes 14:46 changed map script 16:34 map script part 3 18:32 wave script fixed
@user-pv6gt4wp6t
@user-pv6gt4wp6t 11 ай бұрын
thx bro
@abangadikchannel3947
@abangadikchannel3947 9 ай бұрын
This really helps so much bro thank you so much
@goelrads
@goelrads 8 ай бұрын
thx so much
@HaiderRBLX
@HaiderRBLX 8 ай бұрын
I have successfully created my game, it’s called bathtub tower defense
@TvPanzer
@TvPanzer 7 ай бұрын
​@@HaiderRBLX for me the zombies won't spawn in after 9:59 any idea on how to fix that all the words mob in the mob script are underlined
@u1aq
@u1aq 2 жыл бұрын
when he calls me a fellow gnome it makes me happy
@Random-gs5ql
@Random-gs5ql Жыл бұрын
same
@ralphhartman4
@ralphhartman4 5 ай бұрын
OMG NVM IT WORKS!!!! IN MAIN, FOR THE END OF IT "MAP" get rid of the quotation marks. Double check for spelling and exact words!
@soulforkroblox
@soulforkroblox 2 жыл бұрын
its awesome how instead of just telling you what code to write he shows what mistakes people make and how to improve them
@dev_Chaos-ps4fj
@dev_Chaos-ps4fj Жыл бұрын
this is what everyone says but its true
@streemotion8336
@streemotion8336 2 жыл бұрын
When yours doesn't work but you still support the creator for making awesome content and helping other people so you subscribe
@adammabrouk5417
@adammabrouk5417 5 ай бұрын
Yo GnomeCode part 1 was not Hard and i liked that but Part 2 uhhh it shows me an error is there any way u could help me fix it it says ' ServerScriptService.Main.Mob:9: attempt to index nil with 'CFrame' i really wanna make a Tower defence game but thanks for the tutorials they really help me
@matteopalermo851
@matteopalermo851 5 ай бұрын
just put map where you said the map name.
@Lifehacksunder60seconds
@Lifehacksunder60seconds 4 ай бұрын
if at 10:40 the mob doesnt move when spawned change function mob.Move(mob, map) local humanoid = mob:WaitFirstChild("Humanoid") local Waypoint = map.Waypoints for waypoint = 1, #Waypoint:GetChildren() do humanoid:MoveTo(Waypoint[waypoint].Position) humanoid.MoveToFinished:Wait() end to function mob.Move(mob, map) local humanoid = mob:FindFirstChild("Humanoid") local Waypoint = map.Waypoints for waypoint = 1, #Waypoint:GetChildren() do humanoid:MoveTo(Waypoint[waypoint].Position) humanoid.MoveToFinished:Wait() end Your welcome
@Robloxbloxfruit-fo1sb
@Robloxbloxfruit-fo1sb Ай бұрын
teach me:)
@mb9074
@mb9074 24 күн бұрын
you just saved my freaking life thank you so much
@Beniundjul
@Beniundjul 14 күн бұрын
it does not work for me
@miniesofficialbeta2247
@miniesofficialbeta2247 2 жыл бұрын
Hey! I love scripting and im trying to learn as much as possible and this really helps me get inspiration and gets me more into developing! Thank you so much for every video! Right now I'm trying to learn CFrames a bit more. Great video though! Keep up the good work! Gnome Gang Forever! Edit: Fixed some missspells.
@user-gh9gu5mj3f
@user-gh9gu5mj3f 2 жыл бұрын
Ok
@GnomeCode
@GnomeCode 2 жыл бұрын
Great to hear!
@KeikoRoblox
@KeikoRoblox 2 жыл бұрын
@@GnomeCode answer me pls
@EvertOfficial
@EvertOfficial 2 жыл бұрын
@@GnomeCode I was wondering if you are able to make towers and make them animatable? If you do please make a video about them! I really need it for my tower defense game
@GnomeCode
@GnomeCode 2 жыл бұрын
@@EvertOfficial It wouldn't be a tower defence game without towers! They'll be coming in the series soon
@mrmut3
@mrmut3 2 жыл бұрын
You're great at explaining things. I'm very interested in scripts regarding combat. So far I've been using RED Plys to learn how to make a combat script, but I feel his tutorials are very hard to follow for someone who's still trying to learn. I would like to know if you ever plan on making a tutorial on combat. If you do can you make a combat script similar to RED Plys?
@asensmpb7221
@asensmpb7221 2 жыл бұрын
Kinda agree quite hard too follow
@Neshy_YT
@Neshy_YT 6 ай бұрын
hi!! i love ur vids and i'd love if you made a summoning for units!
@DaSwagGuy
@DaSwagGuy 4 ай бұрын
Hi @GnomeCode, this series is great and have been working for me till episode 2#. I did everything you said with thie wave part, but the output always says "Requested module experienced an error while loading" when i run the game. It would be really helpful if you either commented how to fix it, or anyone else the solution to this. Thank you for reading TheGreenDino
@chrispayne7204
@chrispayne7204 2 жыл бұрын
At some point in this series (probably the last epsiode) you could show how to make multiple maps and a way to choose which map you join (the two most common being matchmaking or elevators) aswell as other QoL features like wave skipping. Thanks Gnome! P.S. If your looking for reference, I would recommend Tower Battles, Tower Defense Simulator or Tower Blitz.
@zarsty3648
@zarsty3648 2 жыл бұрын
I'd rather a gui matchmaking, but an elevator would be nice too
@ItzPineBlox
@ItzPineBlox 2 жыл бұрын
Elevators are good but I hate when random people join the match
@RakisahNew
@RakisahNew 2 жыл бұрын
@@zarsty3648 how about global matchmaking jk its extremely complicated
@mechaniccccc
@mechaniccccc 2 жыл бұрын
Tower defense games that teleport you to another server are stupid, it should all happen in the same game
@chrispayne7204
@chrispayne7204 2 жыл бұрын
the crux of the game (the td part) in a seperate game is far more sensible, keeps chat peaceful, less player lag, and it means you dont need complex trigger mechanisms so that a "game" doesnt start in the middle of the lobby
@Feptix
@Feptix 2 жыл бұрын
hey just some suggestions for things that would be good for a full on tower defense game Money that you can spend on towers and upgrading them in game (obviously) Towers that can be upgraded (of course) (5 different levels could be good enough, and them changing appearance based on what level they are would be cool too) A Farm tower (something that would give you different amounts of money per wave) A support tower (like the DJ in TDS, providing buffs to the towers nearby it, and the perks getting better as they upgrade, like a small discount for upgrading) Tower skins (things that would reskin your tower but still do the same thing) A lobby, where you can go into an elevator or something to start a round, and also equip your different towers. Also just something i think would be cool Different enemies that would spawn depending on what map is chosen, like a swamp map would spawn swamp monsters, they'd all be the same at the end of the day just look different I dont expect most of these to get in because they might be kinda complicated
@fan0
@fan0 2 жыл бұрын
I also suggest adding "Skip Wave" button to skip to another wave
@JustAClumsyBoi
@JustAClumsyBoi 2 жыл бұрын
OMG HAIIII! its me. your fan :D
@reddeadleisure
@reddeadleisure 2 жыл бұрын
"(Like DJ in tds)" pain, misery, agony, dread.
@reddeadleisure
@reddeadleisure 2 жыл бұрын
Tower battles is being done dirty, I literally saw someone else say like the commander from tds
@fan0
@fan0 2 жыл бұрын
@@reddeadleisure Actually, TDS copied TB
@JC-ro9wo
@JC-ro9wo 9 ай бұрын
Thank you!! Sr, Lets move to #3
@veronicapang4800
@veronicapang4800 Ай бұрын
The most underrated youtuber
@EmmotsEmilio
@EmmotsEmilio Ай бұрын
Yeah
@MrGreenyJr
@MrGreenyJr 2 жыл бұрын
At line of code 23 in the Enemies(aka Mobs) module script it tries to call a NIL value, I have tried to change it so many times and it just doesn't work. Could you please help me? Also I replaced mob with enemy (The Code is: enemy.Move(enemy, map))
@ritzed7995
@ritzed7995 2 жыл бұрын
same
@hyperplayer7499
@hyperplayer7499 2 жыл бұрын
@@ritzed7995 same
@rexyvrgt
@rexyvrgt 11 ай бұрын
I need help, in main when I put “wave, map” it says, “Argument count mismatch. Function ‘mob.Spawn’ expects 0 to 2 arguments, but 3 are specified. Any help?
@Blue-Square
@Blue-Square 3 ай бұрын
i think u need to put wave, quanitity, map
@Kroodos
@Kroodos 9 ай бұрын
It's normal that at 10:50 I have the same code as you but it don't wants to move ? I did this with another mob. So It's correct or not ?
@OnurYildirim-xv1qp
@OnurYildirim-xv1qp 4 ай бұрын
same with me but i did the same as him but it didint work
@Noelosaurus
@Noelosaurus 3 ай бұрын
For me too.
@Thescaredyacos
@Thescaredyacos 2 ай бұрын
Me too
@RumpyPagsRobloxStudio
@RumpyPagsRobloxStudio 2 ай бұрын
same
@dieterkonings6613
@dieterkonings6613 Ай бұрын
same
@arturchira1690
@arturchira1690 8 ай бұрын
I changed the zombies name to (HUMANOID) caps and all and it finally started spawning multiple also in main (mob.Spawn etc) needs to be *mobs not mob* and it will access (mobs) folder because mob is not a folder (I had this problem for about 4-5 days and im happy i [the noob] fixed it) thanks GnomeCode
@user-xg1rc7uz6i
@user-xg1rc7uz6i 4 ай бұрын
it still didnt fix :(
@natiors
@natiors 2 ай бұрын
love you so much
@PineBloxx
@PineBloxx 2 жыл бұрын
This is awesome Gnome!! How many episode do you think this series will be or is it unknown right now?
@miniesofficialbeta2247
@miniesofficialbeta2247 2 жыл бұрын
Hey Pine Bloxx, I see you quite often xD
@GnomeCode
@GnomeCode 2 жыл бұрын
Unknown. As of right now I've made 2 more episodes but there's still a lot to go. We will see how much can get done before Christmas
@Captan40000
@Captan40000 2 жыл бұрын
@@GnomeCode Nice! This helps me learn a lot and I like sharing it with my friends since their TD fans, and I had a previous TD project which I decided to discontinue it. This probably will make them happy, so thank you for helping me.
@TegoIsADev
@TegoIsADev 2 жыл бұрын
""
@animedude6523
@animedude6523 2 жыл бұрын
@@GnomeCode we need TOWERS
@leelum9107
@leelum9107 10 ай бұрын
Does this still work? I got everything working up to the part where you get the mobs to move after being spawned. I checked everything in my scripts over ten times and I have everything right but the zombies still aren’t moving after spawning.
@AliveMonkey895
@AliveMonkey895 3 ай бұрын
same
@airthebloxx.
@airthebloxx. 2 ай бұрын
No, roblox studio script never changes
@GdDrawings
@GdDrawings 4 ай бұрын
The code works perfectly fine for me
@foxyonpaws1
@foxyonpaws1 5 ай бұрын
instead of writing stuff in Mob script you can just change the wait duration! make sure that it still stays within their respective rounds!
@microman4life962
@microman4life962 2 жыл бұрын
i tried following along and apparently the script tries to index nil on start because my model does not have a humanoidrootpart inside so i thought i could substitute that with a part that already exists on the modele (ex.torso) instead (fixed by adding in a humanoidrootpart, however now it doesn't exist)
@thebladegames5906
@thebladegames5906 8 ай бұрын
Same!!
@SeanSaverioIndo
@SeanSaverioIndo 6 ай бұрын
me too
@Roblotic21
@Roblotic21 19 күн бұрын
Make a rig
@Bunnoy.Oficial
@Bunnoy.Oficial Жыл бұрын
10:10 my zombies dont spawn bro, like not even 1 zombie. What seems to be the issue?
@thegaminggavin2532
@thegaminggavin2532 4 ай бұрын
Same
@TheRealFlinxy
@TheRealFlinxy 5 ай бұрын
Hey GnomeCode, i was trying to do your tutorial, but when i played the map no zombies spawn how do i fix it?
@ShadowBoiTlad
@ShadowBoiTlad 5 ай бұрын
same
@o_o7yt
@o_o7yt Жыл бұрын
Listening to the output really does help when something is broken. May take a couple of minutes to find the problem.
@justygaming0
@justygaming0 10 ай бұрын
How do i make models without the humanoid part move around the track?
@The_annoying1
@The_annoying1 Ай бұрын
TweenService
@martinjebest
@martinjebest 7 ай бұрын
tysm for helping me with tower defense game you are my favourite builder youtuber
@ViperHut
@ViperHut 4 ай бұрын
to everyone saying it dont work i have said that and i have had to relax once i relaxed i watched the video in detail and copied and it worked perfectly fine i will not be providing script as u will not work hard and u need that mindset for a game
@bendogvx3073
@bendogvx3073 2 жыл бұрын
Can we just appreciate how much times he spends just to teach us
@ZIMOU2014
@ZIMOU2014 2 жыл бұрын
I'm not gonna make a TD game with his vids but I'm watching for fun
@PDSE37
@PDSE37 2 жыл бұрын
at first i used to just copy the scripts in the description but you explain so well i can just write it
@coolestHurensohn195
@coolestHurensohn195 2 жыл бұрын
same
@KimchiEater
@KimchiEater 2 жыл бұрын
I need the scripts copied I keep trying to run my thing and it's not working
@martimnene
@martimnene 2 жыл бұрын
@@KimchiEater same
@Iatesomebodyscereal
@Iatesomebodyscereal Жыл бұрын
@@KimchiEater same
@MetaBellaOfficial
@MetaBellaOfficial 7 ай бұрын
give me those scripts pls
@dielegobrosausbayernsim7112
@dielegobrosausbayernsim7112 8 ай бұрын
Respect i cant make a game im so bad in this but you are god respect
@POLOO_not_Goat
@POLOO_not_Goat 5 ай бұрын
Hi Gnome. This series is fantastic but I had a problem. When the mobs on my map reach the end they don't die how is that possible?
@pr0doxz410
@pr0doxz410 4 ай бұрын
Did you make sure to add mob:Destroy() at 13:10 ?
@TheSteveAnimates
@TheSteveAnimates 2 жыл бұрын
Gnomecode when you will make the lobby of this td tutorial? Like how to make a shop for buying towers you get it if you played tower battles or other tds game in roblox Edit: i never got 9 likes on a comment, thanks
@RichRBLX
@RichRBLX 2 жыл бұрын
this is the second video slow down buddy
@sebastiandziekanowski2383
@sebastiandziekanowski2383 2 жыл бұрын
The hardest part
@Blue-Square
@Blue-Square 3 ай бұрын
idk if you watched yet or not but he made that
@goose13378
@goose13378 3 ай бұрын
ok last vido out now its okey @@RichRBLX
@goose13378
@goose13378 3 ай бұрын
aha i have@@Blue-Square
@lukiValent
@lukiValent 2 жыл бұрын
you can also animate the enemies through the module so you dont have to make animate script for every enemy
@MK8Warrior
@MK8Warrior 6 ай бұрын
How
@lukiValent
@lukiValent 6 ай бұрын
@@MK8Warrior 1 year old post, but I now use another enemy system to animate, with 1 single localscript.
@MK8Warrior
@MK8Warrior 6 ай бұрын
@@lukiValent what’s the script?
@lukiValent
@lukiValent 6 ай бұрын
@@MK8Warrior I made it myself for my game, but basically when an enemy is spawned server-side, it is just a stud. When the client receives the newly created enemy, it will give it its enemy model and animate the model. I'm using the OnChildAdded event to replicate the enemies on client.
@MK8Warrior
@MK8Warrior 6 ай бұрын
Is your game finished? If so could you help me@@lukiValent
@MaskedEliteWasTaken
@MaskedEliteWasTaken 3 ай бұрын
To those who have their zombie not reaching the checkpoint fully before they move to the next. then your check points are too far apart just add one in between each one if you have a really long path (Saying this because i found the issue out the hard way and fixed it lol)
@ero_films
@ero_films 3 ай бұрын
My Error says Requested mob does not exist ▼ { ["Move"] = "function", ["Spawn"] = "function" } - Server - Mob:22 please help!
@Da_Dog1010
@Da_Dog1010 2 жыл бұрын
Solve from zombie spawn: if module script is named Mob name all the mob Mob with cap M like this: local ServerStorage = game:GetService("ServerStorage") local Mob = {} function Mob.Spawn(name, map) local MobExists = ServerStorage.Mobs:FindFirstChild(name) if MobExists then local newMob = MobExists:Clone() newMob.HumanoidRootPart.CFrame = map.Start.CFrame newMob.Parent = workspace else warn("Requested mob does not exist:") end end return Mob you can copy and paste that
@RODRIGOOBOSS
@RODRIGOOBOSS 2 жыл бұрын
I will test it
@RODRIGOOBOSS
@RODRIGOOBOSS 2 жыл бұрын
Dont worked
@Da_Dog1010
@Da_Dog1010 2 жыл бұрын
@@RODRIGOOBOSS first the module script need to be called Mob and you need already the start part
@RODRIGOOBOSS
@RODRIGOOBOSS 2 жыл бұрын
@@Da_Dog1010I already solved the problem I googled and found a reddit that gave a script and it worked. But now I don't know how to destroy the npc at the end because when I put the reddit guy's script the npc was already moving. Can you help me with this problem?
@Da_Dog1010
@Da_Dog1010 2 жыл бұрын
@@RODRIGOOBOSS i dont know now because im stuck in collide part 3 and cant remember
@ii_brqkenheqrts6044
@ii_brqkenheqrts6044 2 жыл бұрын
Hi, think you might remember me, I came across your channel when you still had below 1k subscribers.I really enjoy your content and I hope to see you progress in your youtube channel and career, All of these videos you've made have inspired me to learn scripting (well I still really can't, cause I have a very smooth brain) and learn other stuff as well. Please continue to make good content and inspire others to get into development.
@GnomeCode
@GnomeCode 2 жыл бұрын
Thanks for dropping by with the kind words, really appreciate it. If you're looking for a more gentle introduction to scripting I'd recommend checking out my 'First Game' learn to script series.
@wistygg9268
@wistygg9268 2 жыл бұрын
@@GnomeCode hi gnome I can’t get the CFrame bit to work it says CFrame index = nil or something
@MagicMystro
@MagicMystro 2 жыл бұрын
@@wistygg9268 What you want to do is put the start part into the grassland folder
@joshrz4289
@joshrz4289 2 жыл бұрын
@@MagicMystro can you help me with something? in the output it says Requested module experienced an error while loading - server - main:1 and the zombies arent spawning in
@delangaming5388
@delangaming5388 Жыл бұрын
@@GnomeCode need help my zombie wont spawn
@Salm0nOperator
@Salm0nOperator 5 ай бұрын
i have a question, when i got to the part where the part spawns in the zombies, it always says your module experienced an error while loading, can someone help me?
@sabrinajca
@sabrinajca 4 ай бұрын
Nothing won’t spawn in I checked the script if I had a script error but everything was fine and I did all of the things you said. Please does anybody know how to fix this?????
@dijayjames380
@dijayjames380 4 ай бұрын
I'm having the same problem... can someone help?
@luke5964
@luke5964 2 жыл бұрын
at 0:42 for him it shows service script but dosent for me on roblox studio. why is this?
@Skelebones-VR
@Skelebones-VR Ай бұрын
You have to add it before you start Am I too late?
@jmproyt3454
@jmproyt3454 Жыл бұрын
If you're zombie isn't moving there is a possibility that you missspelled or missplaced a folder or model. if you're getting "Waypoints is not a valid member" error. you might have misspelled your "Waypoints" like i did or misspelled you're map
@Lyriclaboratory.
@Lyriclaboratory. Жыл бұрын
do you know the fix to this? having that error on line 9 for the waypoint
@AbramsTheFox1
@AbramsTheFox1 11 ай бұрын
I have the same problem. But nothing's wrong why is this not working??
@z1nc95
@z1nc95 11 ай бұрын
I literally can’t figure out the problem WTH
@AbramsTheFox1
@AbramsTheFox1 11 ай бұрын
@pots6254 I did like 2 seconds ago, check if in line 9 and 10 you have humanoid 2 times. if yeah, remove it, so it's humanoid:MoveTo(waypoints[waypoint].Positionhumanoid.MoveToFinished:Wait() (position has a ")" on the end, but youtube comment inallowed it
@goldcreepergames5537
@goldcreepergames5537 11 ай бұрын
@@AbramsTheFox1 Thank you for solving the problem. Mine is fixed
@user-rk5fz6pi9r
@user-rk5fz6pi9r 6 ай бұрын
gnomecode ive been following your account and its awesome but i have problem, whenever i finished and tested it and the zombies were spawning in groups like you said, but they werent moving inside of the red forcefield (the start) and i just wanted to know if you can pls PLS help me how to fix this, i tried to find the bug but i cant find it, they just wont move and go to the waypoints:(
@NicolaPlayPopular
@NicolaPlayPopular 8 ай бұрын
hey Gnome, i did everything right, i did the same exact stuff as you did , copied everything but yet the zombies don't spawn in, can you please explain why they don't spawn???
@thepuff129
@thepuff129 7 ай бұрын
yooo hope u have not given up just putjust replace this map.Start.CFrame to workspace.Grassland.Start.CFrame
@adityabiswas7912
@adityabiswas7912 2 жыл бұрын
Ayo Gnome, Just a question in a upcoming episode like 4 (since you probably recorded episode 3 by now) will you add modes? like normal and hard mode?
@hambugha21
@hambugha21 Жыл бұрын
I need help I rewrote the script and checked it over (the mob one) and the zombies still aren’t moving I need help I’m desperate plz
@hambugha21
@hambugha21 Жыл бұрын
Btw I’m on the moving in unison one
@Marty_Mc_Ry
@Marty_Mc_Ry Жыл бұрын
@@hambugha21 im stuck on te part where it spawns 3 zombies, mine only spawns 2, the last one only has a humanoid in it. no body
@Figureisblinddidyouknowthat
@Figureisblinddidyouknowthat 8 ай бұрын
I need help with the wave thing. when the mob folder is empty, a new wave does not start
@hugo-gmaes__
@hugo-gmaes__ 2 ай бұрын
ye its totaly not working
@RedRecour
@RedRecour 7 ай бұрын
10:46 When I do that script my zombie doesn't move, and it just spawns a zombie in workspace and deletes when I exit run. I'm not sure how to fix It due to my lack in coding, please help me.
@redpee9963
@redpee9963 3 ай бұрын
same
@prikoxly2.0
@prikoxly2.0 6 күн бұрын
Yes
@wyndo1492
@wyndo1492 Жыл бұрын
we lost about 600,000 souls moving onto this episode of the tower defense tutorial. dont quit guys
@samuilkateliev_2501
@samuilkateliev_2501 2 ай бұрын
when im checking if enemy spawns i always get the error in output which is " attempt to index nil with 'CFrame' " its at 7:58 please if u can fix it somehow let me me know please i really want to make a tower defense game
@kureijidiamond6965
@kureijidiamond6965 2 ай бұрын
ok i had the same problem as well: ServerScriptService.MainScript.Mob:9: attempt to index nil with 'CFrame' and to fix it you have to go to the parent script of the module script and change the following: mob.Spawn("Zombie", map) ^ here I had map as "Grasslands" originally. So change that since the part the zombie will spawn on can be in any map. It should spawn now
@samuilkateliev_2501
@samuilkateliev_2501 2 ай бұрын
@kureijidiamond6965 ty for the help but I had it fixed already so I'm fine
@fartmoney4044
@fartmoney4044 15 күн бұрын
Amazing tutorial
@noobeater4847
@noobeater4847 10 күн бұрын
I agree
New Mob Types + Animations  - Tower Defense Tutorial #3
20:29
GnomeCode
Рет қаралды 444 М.
I Remade Minecraft But It is Optimized!
9:39
Low Level Game Dev
Рет қаралды 92 М.
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 17 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 20 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,1 МЛН
How I beat TDS Survival Modes SOLO with 4x HP Modifier | TDS
14:38
The Red Toppat
Рет қаралды 73 М.
How to make a Tower Defense Game -  #1 Path Navigation
8:17
GnomeCode
Рет қаралды 1,9 МЛН
EVERY TV UNIT vs ENDLESS MODE.. (Toilet Tower Defense)
22:40
Can 6 DEVS Make a SIMULATOR Game Without Communicating?
12:42
RoDev
Рет қаралды 1,3 МЛН
I Ranked Every Roblox Tower Defense Game
6:20
propellars
Рет қаралды 789 М.
The truth about necromancer.. | TDS (Roblox)
12:06
Elite
Рет қаралды 238 М.
1 Minute vs 1 Hour Roblox Game
26:29
ByteBlox
Рет қаралды 110 М.
Godot For Unity Developers
27:43
Gamefromscratch
Рет қаралды 168 М.
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,9 МЛН