Тёмный

Wave Based Attacks - Tower Defense Tutorial #2 

GnomeCode
Подписаться 107 тыс.
Просмотров 744 тыс.
50% 1

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

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6 тыс.   
@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
@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!
@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?
@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
@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
@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
@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 10 дней назад
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 8 дней назад
So apparently this does not work in newer versions based on the experience the newer people are having
@Gnarpyewe
@Gnarpyewe 19 дней назад
I love how its really basic and easy to learn, i love it
@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
@Giltom09
@Giltom09 10 месяцев назад
U need more subs man, this stuff is so helpful
@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
@Aquarius_faz
@Aquarius_faz 8 месяцев назад
genuinly this is the best tuturial ever
@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 10 месяцев назад
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
@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'
@NinjafoxYT791
@NinjafoxYT791 4 месяца назад
This series deserves a sub :)
@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
@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
@Yugoslavian_Animator
@Yugoslavian_Animator 5 месяцев назад
Best tutorial i ever seemed
@_Z_5_
@_Z_5_ 21 день назад
I took days and it didn't spawn
@ThenextRIZZLER
@ThenextRIZZLER 13 дней назад
I havent tried the tutorial but try to spot mistakes like compare your scripts with his
@ddjoaogames1352
@ddjoaogames1352 13 дней назад
yea
@qingshanyipian1936
@qingshanyipian1936 13 дней назад
do exactly what he did and recheck
@Mr.Sharky.flying
@Mr.Sharky.flying 12 дней назад
same 😢
@VOID_gameng
@VOID_gameng 7 дней назад
You guys need to check the name that you save its must be same with him in order to work like him
@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
@@z0rreal11 yep planet got a career therefore its discontinued
@Mary-qt4jq
@Mary-qt4jq 3 месяца назад
@@unitedstatesofasparagus9758 bro thats why i am here
@SusMystery
@SusMystery 24 дня назад
@@unitedstatesofasparagus9758 yeah... );
@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
@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?
@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
@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.
@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
@aqourssunshine6572
@aqourssunshine6572 2 месяца назад
The coroutine is giving me error messages and I cannot figure out how to fix it. Ive tried looking into coroutines online and even if ive read the solution my implementation of it did not fix. is there anywhere else i could go to get assistance? the error message is " invalid argument #1 to 'wrap' (function expected, got nil) "
@Peaceful_Bacon
@Peaceful_Bacon 5 месяцев назад
Thanks so much! it helped alot
@MwSama
@MwSama 2 года назад
I love how u cleanly coded everything! Just perfection!
@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!
@Theblademaster5029
@Theblademaster5029 7 месяцев назад
Man, this guy is very good tutorial maker😇
@arccent8
@arccent8 6 месяцев назад
Can anyone help me with something? Instead of the zombie model I used an normal rig I did everything but when I test it it says to the output "InsertService cannot be used to load assets from the client" pls someone help me, i am new and i have no idea what do i have to do.
@planetgaming5979
@planetgaming5979 Год назад
really high quality tutorial and i learnt a lot. Also his basic tutorial is really in depth
@immuno9015
@immuno9015 Год назад
10:06 saving my time, Awesome tutorial!
@Gen1us707
@Gen1us707 14 дней назад
i never noticed the orientation indicator! Thats gonna be so useful for some upcoming games!
@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")
@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
@ero_films
@ero_films 3 месяца назад
My Error says Requested mob does not exist ▼ { ["Move"] = "function", ["Spawn"] = "function" } - Server - Mob:22 please help!
@ActuallyHuie
@ActuallyHuie 8 месяцев назад
my scripts are fine but for some reason nothing will spawn. i rewrote the script and made sure to not misspell anything but it still didn't work, can some one help me?
@rexyvrgt
@rexyvrgt 10 месяцев назад
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
@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
@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.
@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
@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
@X1gaming504
@X1gaming504 8 месяцев назад
idk why the zombies not spawning is there any ideas how to spawn it ?
@PedroTDS
@PedroTDS 2 месяца назад
tysm bro after i do this game i will wach other tutorials!!
@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.
@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 18 дней назад
Make a rig
@Baba_Josh
@Baba_Josh 8 месяцев назад
Umm can anyone help me, I dont know if I missed a step but after I ran it at the end of the video the mobs wouldnt appear the backround like the grass and the trees looked nice but the mobs just didnt appear im really wondering why please help!
@Chandler_Carroll
@Chandler_Carroll 3 месяца назад
@GnomeCode the enemy wont spawn and i have an error code that is saying "ServerScriptService.Main:1: attempt to call a nil value" How do i fix this?
@Annithro
@Annithro 2 года назад
Amazing job on the tutorials, Keep the amazing work up!
@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
@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 4 месяца назад
same
@u1aq
@u1aq 2 года назад
when he calls me a fellow gnome it makes me happy
@Random-gs5ql
@Random-gs5ql Год назад
same
@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
@TheRedstoneAce
@TheRedstoneAce 3 месяца назад
I get either the output “attempt to index nil with start” or “attempt to index nil with CFrame”. Please help because I am trying to work on a tower defense game with a team and we cannot move on until the enemy spawns and is moving.
@Timraz1
@Timraz1 4 дня назад
the best teacher in whole world, i love your videos. You making amazing job
@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.
@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
@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
@bmvsaol2630
@bmvsaol2630 7 месяцев назад
i need help because when making the enemy move i followed all ur instruction but the enemy is still not moving
@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
@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
@sauloc9996
@sauloc9996 6 месяцев назад
I am having problems with destroying the mobs, since when they reach the end an error pops up saying that my waypoint could not be found, and it makes it so it doenst destroy the mob. Does anyone got a solution to this? Fixed it: there were actually 13 waypoints instead of 12
@michaelgelpke3811
@michaelgelpke3811 7 месяцев назад
I think i messed my walking script up because the zombie doesn't move and it says error cloud_11663072354, but u dint know how to fix it
@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
@justygaming0
@justygaming0 10 месяцев назад
How do i make models without the humanoid part move around the track?
@The_annoying1
@The_annoying1 Месяц назад
TweenService
@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?
@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 5 дней назад
Yes
@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
@JustOnlyBlue
@JustOnlyBlue 2 месяца назад
i have an error.. Postion is not a valid member of Part "Workspace.Grasslands.waypoints.1" im sure i did everything right seems not any help?
@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
@Its_me_Fez
@Its_me_Fez 9 месяцев назад
bro it works LOL and it looks so fun!
@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:(
@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
@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
@TheTrueLunarVoid
@TheTrueLunarVoid 5 месяцев назад
10:48 when I add this line of code, I get an error reading 'Mob:9: Humanoid is not a valid member of Humanoid "Workspace.Enemies.Enemy.Humanoid"' and only when I add that line. can someone please help? [EDIT] nevermind, I fixed it. If you have the same issue, replace the mob.Move function with this: function mob.Move(mob, map) local humanoid = mob:WaitForChild("Humanoid") local waypoints = workspace.Waypoints for waypoint=1, #waypoints:GetChildren() do humanoid:MoveTo(waypoints[waypoint].Position) humanoid.MoveToFinished:Wait() end end
@csdotte
@csdotte 4 месяца назад
So, can you help me? It evens spawns the zombie and it moves, but it doesn't spawns the other zombies
@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
@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
@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?
@lukasgrochocki4492
@lukasgrochocki4492 2 месяца назад
when i do coroutine part it says ServerScriptService.Main.Mob:23: Expected ':' not '.' calling member function MoveTo may i get some info or help?
@cricketeer606
@cricketeer606 Месяц назад
I have a problem where if I delete the mobs in the workspace, they still exist but are just invisible. The round does not stop and it goes until the invisisble mobs reach the end. Help?
@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
@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
@liamdabomb
@liamdabomb 4 месяца назад
it says Requested module experienced an error while loading. in ServerScriptService but i literally have the same scripts, maybe its outdated? idk can you help
@Glitched_Banana
@Glitched_Banana 8 месяцев назад
Hey when i tried to run to spawn the zombies it said "attempt to index nil with 'start' " how to fix?
@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
@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.
@circlesquared6633
@circlesquared6633 6 месяцев назад
I dont think this works anymore evey time i do it even if i copy it 1:1 i does'nt work i keep getting errors like attempt to index nil with 'CFrame' and the zombie wont spawn
@Rotonim
@Rotonim 3 месяца назад
Help me when I’m writing a script and zombies don’t spawn and there’s no error, what should I do?
@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 23 дня назад
you just saved my freaking life thank you so much
@Beniundjul
@Beniundjul 13 дней назад
it does not work for me
@angrykid4673
@angrykid4673 Год назад
My script isn't spawning in 3 zombie it only spawns 1 and I followed the instructions perfectly.
@slurpybanana
@slurpybanana Год назад
same
@romino8703
@romino8703 10 месяцев назад
same
@faisalbarakat9888
@faisalbarakat9888 7 месяцев назад
can anyone please explain to me why the first script that prints out the name and map isnt working? the error in the output is ServerScriptService.main:3: attempt to index nil with 'spawn'
@user-jh9yj1pf6t
@user-jh9yj1pf6t 5 месяцев назад
please please help! i have "mobs" folder in serverstorage and in "mobs" folder there is a zombie but when i test the game in output there is a "Requested mob does not exist: Zombie". HOW TO FIX IT!!!!!!
@WorldPlanet24
@WorldPlanet24 7 месяцев назад
its all working but i got a problem with waypoints, the zombies doesnt follow it at all cause at last waypoints it doesnt go straight to the end
@circlesquared6633
@circlesquared6633 6 месяцев назад
I think it might not work anymore maybe
@ClatoqFN
@ClatoqFN 6 месяцев назад
@@circlesquared6633 it still works
@circlesquared6633
@circlesquared6633 6 месяцев назад
@@ClatoqFN i keep getting an error attemp to index nil with 'CFrame ' and the zombie wont spawn
@JawdropStudios
@JawdropStudios 2 месяца назад
check if you anchored it
@RecollectionZ
@RecollectionZ 6 месяцев назад
8:00 when i try to run the game, the mob doesn't spawn and says "Requested module experienced an error while loading" - Server - Main:1 how do i fix this?
@CheeseGobbler123
@CheeseGobbler123 4 месяца назад
same
@lightbulb8500
@lightbulb8500 9 месяцев назад
the zombies dont move but clone straight away and cant collide with eachother please tell me how fix it GnomeCode
@adamalatalo7381
@adamalatalo7381 2 года назад
The problem with "attempt to index nil with "CFrame" is that in the main script change the name from "Grasslands map" to map and make sure CFrame is spelled with large C and F and put the Start inside the grasslands folder.
@Cheeries
@Cheeries 2 года назад
But if humanoid root part is a nil in CFrame?
@Cheeries
@Cheeries 2 года назад
Just change a script what should find Grasslands, or just main script should be local mob = require(script.Mob) local map = workspace.Grassland mob.spawn("Zombie", map)
@tbg-thebootleggamer8647
@tbg-thebootleggamer8647 2 года назад
@@Cheeries Thank you! I had the same problem, and I didn't know what to do.
@Cheeries
@Cheeries 2 года назад
@@tbg-thebootleggamer8647 That's not a problem for me.
@exstinguishify
@exstinguishify 2 года назад
Thank you for this!
@Flatusfinn
@Flatusfinn 9 месяцев назад
Why doesnt my zombie spawn pls help
@woopcanjoe456
@woopcanjoe456 9 месяцев назад
Tysm I'll make sure to add credits
Далее