Wave Based Attacks - Tower Defense Tutorial #2

  Рет қаралды 899,121

GnomeCode

GnomeCode

Күн бұрын

Пікірлер: 7 100
@Rez_R
@Rez_R Жыл бұрын
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
@Ultimantecat
@Ultimantecat 3 жыл бұрын
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
@OneAndOnlyLunar
@OneAndOnlyLunar 3 жыл бұрын
Did you just say “do do”
@benjamincrocetti1305
@benjamincrocetti1305 3 жыл бұрын
But whit the videos you can do a tower defense games?
@Ultimantecat
@Ultimantecat 3 жыл бұрын
@@OneAndOnlyLunar yes to do*
@OneAndOnlyLunar
@OneAndOnlyLunar 3 жыл бұрын
@@Ultimantecat you should edit and change it to "to do"
@hellodood9547
@hellodood9547 3 жыл бұрын
ikr, this guy is so underated
@Scout71
@Scout71 Жыл бұрын
Without this guy I wouldve probably failed making a tower defense game
@lightvr2290
@lightvr2290 2 ай бұрын
Congrats on making it past the the first video!!! Keep going, this game will be amazing, don’t give up.
@bencebajusz-barkomagdolna6411
@bencebajusz-barkomagdolna6411 5 сағат бұрын
ty bro ur the best😃😊
@scott7827
@scott7827 2 жыл бұрын
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
@Dying_Wizard
@Dying_Wizard Жыл бұрын
thx bro
@abang.adik2
@abang.adik2 Жыл бұрын
This really helps so much bro thank you so much
@goelrads
@goelrads Жыл бұрын
thx so much
@h7ult
@h7ult Жыл бұрын
I have successfully created my game, it’s called bathtub tower defense
@TvPanzer
@TvPanzer Жыл бұрын
​@@h7ult 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 3 жыл бұрын
when he calls me a fellow gnome it makes me happy
@Random-gs5ql
@Random-gs5ql 2 жыл бұрын
same
@Nico-ux3jh
@Nico-ux3jh Ай бұрын
@@Random-gs5ql i agree with
@MaxxTypo
@MaxxTypo 4 ай бұрын
If your mob isn't spawning, go into the main script, and make sure it says this: local mob = require(script.Mob) local map = workspace.Grassland -- (or your map name, doesn't have to be grassland.) mob.Spawn("Zombie", map) -- Make sure that says map, and not the name of the map, example; Grassland Hope this helped
@Snowalizer
@Snowalizer 4 ай бұрын
it still didn't work
@gusike
@gusike 3 ай бұрын
THANKS YOU MAN!!!
@hindustanzindabad-p7p
@hindustanzindabad-p7p 3 ай бұрын
bro... i thought the mob script was the problem... YOUR A LIFESAVER!!!
@Lonver-offical
@Lonver-offical 2 ай бұрын
thx
@connorgamerxyz3926
@connorgamerxyz3926 2 ай бұрын
ok it spawned but it wont move
@arkin2263
@arkin2263 Жыл бұрын
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 Жыл бұрын
Everything I did Correctly but It don't spawn In.
@Baguga.
@Baguga. Жыл бұрын
i got everything right its still wouldnt spawn the zombies
@asadfehduhgrfhu
@asadfehduhgrfhu Жыл бұрын
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 Жыл бұрын
man i have no idea then mine works just fine
@coltiny1265
@coltiny1265 Жыл бұрын
@@arkin2263 how?
@jennaortegaisfine
@jennaortegaisfine Жыл бұрын
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 Жыл бұрын
How do I fix a script timeout
@Neshy_YT
@Neshy_YT Жыл бұрын
@imyofarder
@imyofarder 10 ай бұрын
@@Neshy_YT
@afterpartyslays
@afterpartyslays 10 ай бұрын
@@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
@atticuskaeser4260
@atticuskaeser4260 6 ай бұрын
the same exact thing started happening to me on this episode Like When I was coding I realised what some of the code actually meant such as GetFirstChild and such
@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. :)
@secretive2211
@secretive2211 Жыл бұрын
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.
@bama-yam
@bama-yam Жыл бұрын
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
@Jackpack1
@Jackpack1 5 ай бұрын
Solution to 7:10 Oreantaion thing, If its not working for you just put a script on top like | local Start = workspace.(Your map name).Start | then replace "map.start.CFrame" with "Start.CFrame" :D
@IonColesnicov
@IonColesnicov 4 ай бұрын
can you tell exactly where to put the script?
@IonColesnicov
@IonColesnicov 4 ай бұрын
nwm it worcked thx for helping
@LemonDog0
@LemonDog0 4 ай бұрын
Thank you man you are genuinely a life saver.
@ColX6
@ColX6 4 ай бұрын
@@IonColesnicov where do i put the script?
@LostEdits009
@LostEdits009 4 ай бұрын
Do you replace the local start=workspace.grassland.start with local serverstorage = game. getservice("serverscriptservice") bc it still won't spawn for me (pls help)
@thepuff129
@thepuff129 Жыл бұрын
if any of yall having trouble on your zombies spawning and not moving heres how to fix it local waypoints = map.Waypoints put it to this local waypoints = workspace.Grassland.Waypoints and they should fix ps like this so more people can see
@Dare-bi7uw
@Dare-bi7uw Жыл бұрын
Still dosent work
@sofyanarief3569
@sofyanarief3569 3 ай бұрын
Tysm
@Minikookies111
@Minikookies111 3 ай бұрын
where do i put it
@Valkeirne
@Valkeirne 2 ай бұрын
Dude tysm! I was scrolling through EVERY comment and this one worked! Thank you again 😁
@StudioScriptBuilders-fb9bu
@StudioScriptBuilders-fb9bu Ай бұрын
dang bro that actually worked thanks for that!
@Dcronacrowreal
@Dcronacrowreal 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 9 ай бұрын
You're right!
@immuno9015
@immuno9015 2 жыл бұрын
10:06 saving my time, Awesome tutorial!
@godly1811
@godly1811 3 ай бұрын
Doing this in 2024 and it works. You just need to do simple changes on some parts of the codes but it's working for me adn I'm learning a lot with him. He deserves a like and a subscribe.
@merlijnvandebor7101
@merlijnvandebor7101 3 ай бұрын
Wat are the changes because no matter what I do it doesn't work
@NoobyPlays266
@NoobyPlays266 3 ай бұрын
@@merlijnvandebor7101 same
@someoneinvr2
@someoneinvr2 3 ай бұрын
@@merlijnvandebor7101 learn how to code
@godly1811
@godly1811 3 ай бұрын
@@merlijnvandebor7101 you need to do some changes on the script. If you don't know how to script, use ChatGPT no learn.
@S_platYT
@S_platYT 3 ай бұрын
@@merlijnvandebor7101 yea wtf
@unitedstatesofasparagus9758
@unitedstatesofasparagus9758 2 жыл бұрын
my friends are trying to make a tower defense game after tower battles is being discontinued. thank you for this awesome series !
@z0rreal11
@z0rreal11 2 жыл бұрын
WAIT WHAT
@unitedstatesofasparagus9758
@unitedstatesofasparagus9758 2 жыл бұрын
@@z0rreal11 yep planet got a career therefore its discontinued
@Mary-qt4jq
@Mary-qt4jq 10 ай бұрын
@@unitedstatesofasparagus9758 bro thats why i am here
@SusMystery
@SusMystery 7 ай бұрын
@@unitedstatesofasparagus9758 yeah... );
@kplinger
@kplinger 6 ай бұрын
It's not discontinued, it's just in an inactive state due to the developers having a career. It will be updated again.
@Giltom09
@Giltom09 Жыл бұрын
U need more subs man, this stuff is so helpful
@可ッ
@可ッ 4 ай бұрын
he have 112k now it's good ;)
@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
@NinjafoxYT791
@NinjafoxYT791 11 ай бұрын
This series deserves a sub :)
@tommy1239
@tommy1239 5 ай бұрын
true
@GodOfSpeedruns740
@GodOfSpeedruns740 Жыл бұрын
Great Series! (Subscribed after first video!)
@SkibidiUniverse24
@SkibidiUniverse24 11 ай бұрын
do u know how to fix this? HumanoidRootPart is not a valid member of Model "Enemy"
@randomcat1224
@randomcat1224 11 ай бұрын
​@@SkibidiUniverse24 first off, you have to go get some better common sense secondly, learn how to rig models third, its fixed nothing else
@kelleywilliams4239
@kelleywilliams4239 Ай бұрын
this is my 1st ever roblox studio game! it going vary well so far. thank you gnomecode for this tutorial!
@Bee-vr1437
@Bee-vr1437 Ай бұрын
how did you get it to work its not spawning for me
@issacjoestar8046
@issacjoestar8046 3 жыл бұрын
I and others appreciate you taking your time to do all of this GnomeCode, you're a godsend man.
@boogernnboogie6838
@boogernnboogie6838 3 жыл бұрын
the script doesnt work
@SRTdowned
@SRTdowned 2 жыл бұрын
@@boogernnboogie6838 Yes it does check the output of there are any errors
@Joyjohn1012
@Joyjohn1012 2 жыл бұрын
@@huller1041 same, for me it just warns me that the mob doesn’t exist even though i have his exact code
@Joyjohn1012
@Joyjohn1012 2 жыл бұрын
@@huller1041 i’ve tried 4 times though and no fix
@Joyjohn1012
@Joyjohn1012 2 жыл бұрын
@@huller1041 Ok ty bro
@ArseneKichi
@ArseneKichi 3 жыл бұрын
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 3 жыл бұрын
yes
@lilideclercq5530
@lilideclercq5530 3 жыл бұрын
Sey
@modernrealms
@modernrealms 3 жыл бұрын
Ice wanted to for a while lol
@TheSteveAnimates
@TheSteveAnimates 3 жыл бұрын
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 3 жыл бұрын
this is the second video slow down buddy
@sebastiandziekanowski2383
@sebastiandziekanowski2383 3 жыл бұрын
The hardest part
@Blue-Square
@Blue-Square 10 ай бұрын
idk if you watched yet or not but he made that
@goose13378
@goose13378 10 ай бұрын
ok last vido out now its okey @@RichRBLX
@goose13378
@goose13378 10 ай бұрын
aha i have@@Blue-Square
@anatrammidak
@anatrammidak 10 күн бұрын
Can someone help? around 8:13 it wont work and it said "requested mob does not exist" how do i fix this?? (im still very new)
@SRTdowned
@SRTdowned 2 жыл бұрын
You are a really good coder keep up the good work!
@ag.hoopin
@ag.hoopin Жыл бұрын
How do I fix this "ServerScriptService.main.mob:9: attempt to index nil with 'CFrame'
@miniesofficialbeta2247
@miniesofficialbeta2247 3 жыл бұрын
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.
@𰽘
@𰽘 3 жыл бұрын
Ok
@GnomeCode
@GnomeCode 3 жыл бұрын
Great to hear!
@duckerson812
@duckerson812 3 жыл бұрын
@@GnomeCode answer me pls
@ClydeOfficiaI
@ClydeOfficiaI 3 жыл бұрын
@@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 3 жыл бұрын
@@ClydeOfficiaI It wouldn't be a tower defence game without towers! They'll be coming in the series soon
@chricyan778
@chricyan778 3 жыл бұрын
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 2 жыл бұрын
yeah same im working on one rn
@DarwisyAdyan
@DarwisyAdyan 2 жыл бұрын
@@SomeGameDeveloper whats the name? ill play it
@deisydejesus2033
@deisydejesus2033 Жыл бұрын
Im also new to scripting. I am learning.
@Memoliszx
@Memoliszx 3 ай бұрын
dude i couldnt do a single obby game and i can do a tower defence game because of this guy
@Valentinos_tounge
@Valentinos_tounge 3 ай бұрын
I love how people are still following this tutorial 2 years later (including me)
@Ramirin1010
@Ramirin1010 3 жыл бұрын
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 3 жыл бұрын
I will test it
@RODRIGOOBOSS
@RODRIGOOBOSS 3 жыл бұрын
Dont worked
@Ramirin1010
@Ramirin1010 3 жыл бұрын
@@RODRIGOOBOSS first the module script need to be called Mob and you need already the start part
@RODRIGOOBOSS
@RODRIGOOBOSS 3 жыл бұрын
@@Ramirin1010I 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?
@Ramirin1010
@Ramirin1010 3 жыл бұрын
@@RODRIGOOBOSS i dont know now because im stuck in collide part 3 and cant remember
@grifffv
@grifffv Жыл бұрын
Hey Gnome! I am using an alien as my mob instead of a zombie, and around 10:00 when I try to spawn in multiple of the Mobs, it only spawns one. EDIT: I figured out it was an error with the model I was using, solved it!
@FrostyGT
@FrostyGT Жыл бұрын
How do you get them to move :(
@grifffv
@grifffv Жыл бұрын
@@FrostyGT I would just double check your script, but for me once I switched my model it worked fine!
@The_Real_Mini
@The_Real_Mini Жыл бұрын
tell me how it doesn't work for me too
@grifffv
@grifffv Жыл бұрын
@@The_Real_Mini Like I said just try using a different model. Make sure that it is not anchored. It took me some time to find the right model, tell me if you need any more help
@Swartzplayss
@Swartzplayss Жыл бұрын
my zombies spawns but it does not move@@grifffv
@rezi00
@rezi00 Жыл бұрын
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 Жыл бұрын
@ag.hoopin
@ag.hoopin Жыл бұрын
How do I fix this "ServerScriptService.main.mob:9: attempt to index nil with 'CFrame'
@xcrev
@xcrev Жыл бұрын
you are a hero
@baileyrog
@baileyrog Жыл бұрын
10:34 i’m having trouble, get children is not a valid member of folder workspace.Grassland.Waypoints any help?
@baileyrog
@baileyrog Жыл бұрын
like 8 of the mob script
@RickAstley1234
@RickAstley1234 Жыл бұрын
this series is really good! better quality than any classes!
@Antkitex
@Antkitex 2 күн бұрын
7:46 dosent work cuz dosent spawns idk why i looked output but nothing
@planetgaming5979
@planetgaming5979 2 жыл бұрын
really high quality tutorial and i learnt a lot. Also his basic tutorial is really in depth
@PineBloxx
@PineBloxx 3 жыл бұрын
This is awesome Gnome!! How many episode do you think this series will be or is it unknown right now?
@miniesofficialbeta2247
@miniesofficialbeta2247 3 жыл бұрын
Hey Pine Bloxx, I see you quite often xD
@GnomeCode
@GnomeCode 3 жыл бұрын
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 3 жыл бұрын
@@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 3 жыл бұрын
""
@animedude6523
@animedude6523 3 жыл бұрын
@@GnomeCode we need TOWERS
@chrispayne7204
@chrispayne7204 3 жыл бұрын
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 3 жыл бұрын
I'd rather a gui matchmaking, but an elevator would be nice too
@ItzPineBlox
@ItzPineBlox 3 жыл бұрын
Elevators are good but I hate when random people join the match
@RakisahNew
@RakisahNew 3 жыл бұрын
@@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
@giztillian9183
@giztillian9183 Ай бұрын
for anyone struggling I recommend going to view and using the output setting. I was struggling for an hour then I used this and finally realized where I messed up.
@GUIBERNARDOW
@GUIBERNARDOW Жыл бұрын
MOBCODE: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 = game.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("Requested mob does not exist:", name) end end return mob MAINCODE:local mob = require(script.Mob) local map = workspace.GrassLand for wave=1, 5 do print("Wave", wave ,"started") 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", wave ,"Ended") task.wait(1) end FULL CODE!
@leeumyupdrip2879
@leeumyupdrip2879 6 ай бұрын
Thank you so very much.
@fierzy_new
@fierzy_new 3 жыл бұрын
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!
@strawberry_makes_gacha
@strawberry_makes_gacha 3 жыл бұрын
How is you're Tower Defense Game called?
@fierzy_new
@fierzy_new 3 жыл бұрын
Tower Defenders
@mobileobbygod2589
@mobileobbygod2589 3 жыл бұрын
@@fierzy_new lies
@mobileobbygod2589
@mobileobbygod2589 3 жыл бұрын
@@strawberry_makes_gacha mispelled some stuff
@camelmanguy9181
@camelmanguy9181 3 жыл бұрын
Dude, chill
@Bunnoy.Oficial
@Bunnoy.Oficial Жыл бұрын
10:10 my zombies dont spawn bro, like not even 1 zombie. What seems to be the issue?
@thegaminggavin2532
@thegaminggavin2532 11 ай бұрын
Same
@jonasedin5662
@jonasedin5662 5 ай бұрын
same
@A-trainBoxten
@A-trainBoxten 2 ай бұрын
there can be multiple but the one i had is that i put local Mob{} but used mob with lowercase m,so if you put Mob you need to type Mob everywhere
@Egoist_glory
@Egoist_glory 5 күн бұрын
same
@TheLordOfKebabs
@TheLordOfKebabs 3 ай бұрын
this man is a hero. Thank you so much!
@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
@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 Жыл бұрын
I have the same problem. But nothing's wrong why is this not working??
@blu3c0ne
@blu3c0ne Жыл бұрын
I literally can’t figure out the problem WTH
@AbramsTheFox1
@AbramsTheFox1 Жыл бұрын
@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 Жыл бұрын
@@AbramsTheFox1 Thank you for solving the problem. Mine is fixed
@ThatOneOddGuy-ip8cv
@ThatOneOddGuy-ip8cv 7 күн бұрын
works rly good
@imthesilly-k9j
@imthesilly-k9j 6 күн бұрын
Yo bro, why zombies can’t spawn can you send me your script?
@imthesilly-k9j
@imthesilly-k9j 6 күн бұрын
Tell me what I did wrong
@ThatOneOddGuy-ip8cv
@ThatOneOddGuy-ip8cv 5 күн бұрын
@@imthesilly-k9j alright so um just take a picture of the script ask ai for copy it down wherever he tells you to put it
@Alerxs
@Alerxs 5 ай бұрын
Thanks For The Tutorial, Youve Just Earned A Subscriber!!!
@ItsCloudGod
@ItsCloudGod 5 ай бұрын
Why does my zombie move? I’m at 11:36
@Kroodos
@Kroodos Жыл бұрын
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 ?
@yolofficial1
@yolofficial1 11 ай бұрын
same with me but i did the same as him but it didint work
@Noelosaurus
@Noelosaurus 10 ай бұрын
For me too.
@Thescaredyacos
@Thescaredyacos 9 ай бұрын
Me too
@RumpyPagsRobloxStudio
@RumpyPagsRobloxStudio 9 ай бұрын
same
@dieterkonings6613
@dieterkonings6613 8 ай бұрын
same
@HeroDevv
@HeroDevv 3 ай бұрын
18:37 A better way to do this is map.Mob.ChildRemoved:Wait() instead of task.wait(1), this will be faster and less resource intensive, it will also remove the seemingly random wait times between waves, and if you want a wait time between waves, just add one.
@Beast33158
@Beast33158 3 ай бұрын
Hey do you maybe know why when i delete my mobs next wave doesnt start
@codeypadrick6452
@codeypadrick6452 2 ай бұрын
@@Beast33158 I agree this is happening to me too
@Beast33158
@Beast33158 2 ай бұрын
@@codeypadrick6452 hey i know why it was happening with on my game you have to do it through server
@MrShortFishy
@MrShortFishy 3 жыл бұрын
Your incredibly easy to follow along, thank you!
@Maroclaww
@Maroclaww 2 жыл бұрын
Incredible "Easy" huh? When I ran the game at 10:12 the zombies didn't spawn! So much for "Easy"
@mauriwyd
@mauriwyd 2 жыл бұрын
@@Maroclaww 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 жыл бұрын
@@mauriwyd Same
@Misterdog77
@Misterdog77 2 жыл бұрын
Except for when you get a million errors and realise that you've made a dumb mistake
@springtrap4079
@springtrap4079 2 жыл бұрын
@@Maroclaww for me its working
@Lordmaster1111A
@Lordmaster1111A 8 ай бұрын
for those of you stuck at around 9:40 having the script not working I have a working one function mob.Move(mob,map) local humanoid = mob:WaitForChild("Humanoid") local waypoints = map.waypoints:GetChildren() local point = 1 local waypoint = nil for waypointIndex = 1, #waypoints do for i, part in ipairs(waypoints) do if part.Name == tostring(point) then waypoint = part break end end humanoid:MoveTo(waypoint.Position) point = point+1 humanoid.MoveToFinished:Wait() end end its kinda long and strange but it gets the job done
@Obese_Fish
@Obese_Fish 4 ай бұрын
OMG THANK YOU SO MUCH, I STARED AT THE SCREEN FOR LIKE 2 HOURS WONDERING WHY IT WASNT WORKING, you saved me another 4 hours of staring LOL
@Sambath-m5v
@Sambath-m5v 4 ай бұрын
where do i put it? main or mobs
@Oxmc
@Oxmc 4 ай бұрын
thx
@HashTheRobloxian
@HashTheRobloxian 4 ай бұрын
@@Sambath-m5v mobs
@Zuzuga1
@Zuzuga1 4 ай бұрын
life saver
@GL99-GL1tch
@GL99-GL1tch 26 күн бұрын
For those whos mobs are spawning but not moving, make sure the waypoints folder is in the workspace, rather than in your map folder
@Pyr0Blox1
@Pyr0Blox1 3 жыл бұрын
Can We All Enjoy the effort this man put into this video for all of us so can we all like his videos
@CasualHumanBeing132
@CasualHumanBeing132 3 жыл бұрын
Lets appriciate for this guy's comment for not supporting the channel and gets likes
@streemotion8336
@streemotion8336 3 жыл бұрын
When yours doesn't work but you still support the creator for making awesome content and helping other people so you subscribe
@RedbloxPlays
@RedbloxPlays 5 ай бұрын
Yep for real 👍
@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.
@shyamshaan1546
@shyamshaan1546 21 сағат бұрын
12:35, my output says "Requested mob does not exist: zombie" what does that mean? PLEASE HELP
@leelum9107
@leelum9107 Жыл бұрын
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 10 ай бұрын
same
@airthebloxx
@airthebloxx 9 ай бұрын
No, roblox studio script never changes
@JessicaNicholson-kk3pe
@JessicaNicholson-kk3pe 3 ай бұрын
i had that, make the h in humanoid capital
@Tottitomato
@Tottitomato Ай бұрын
@@JessicaNicholson-kk3pe still dont work it spawns 3 at the time but dont move
@FFakeTap2024
@FFakeTap2024 Ай бұрын
at 10:13 it stopped working
@uru4123
@uru4123 2 жыл бұрын
I love your tutorials, they are very helpful, and help me learn to script!
@JellyFruit-t
@JellyFruit-t Жыл бұрын
it doesn't work.
@richardkollyer
@richardkollyer 3 ай бұрын
bro this tutorial is awsome 🔥
@rxinb0w.K
@rxinb0w.K 9 ай бұрын
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
@KureijiDiamond
@KureijiDiamond 9 ай бұрын
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
@rxinb0w.K
@rxinb0w.K 9 ай бұрын
@kureijidiamond6965 ty for the help but I had it fixed already so I'm fine
@Official_ViperYT
@Official_ViperYT 4 ай бұрын
​@@KureijiDiamondbro tysm, I had this issue too and didnt know what I did wrong, i was left confused for like 10 mins
@Corn_productions
@Corn_productions 6 ай бұрын
THE ZOMBIE NEVER SPAWNS AND I FOLLOWED EVERY SINGLE STEP
@talesdavi322
@talesdavi322 6 ай бұрын
you need to add a humanoidrootpart for it to generate, also remove the .mob form the map in the mob script
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
Buddy using parameter names that are the exact same to the module name will break the script
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
1: Make sure you are NOT using "mob" or your module table name or this will break 2: Make sure you are actually sending the correct parameters or moving breaks 3: Make sure your mob is not too fast that u cant see 4: Make sure you set network ownership and placed it in workspace 5: Make sure you never use "mob" in the coroutine 6: Make sure when you call the coroutine like: coroutine.wrap(mob.Move)(newMob, mapExists) 7: Make sure you are not sending the mob and the newMob that is a clone 8: Make sure your enemy has a primaryPart and a humanoid If something is still wrong send me ur code
@xingto
@xingto 4 ай бұрын
@@GoatedTsbPlayer here idk why but i didnt work pls tell me anything if i do wrong
@xingto
@xingto 4 ай бұрын
@@GoatedTsbPlayer mob module 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
@YaGamerBro
@YaGamerBro Жыл бұрын
YOU NEED TO HAVE A Mob folder IN UR MAP FOLDER FOR IT TO WORK!!!!!!!
@YaGamerBro
@YaGamerBro Жыл бұрын
IF YOU DONT HAVE THE FOLDER THE ZOMBIES WONT SPAWN
@VeryLovelyTacos
@VeryLovelyTacos Жыл бұрын
TYSM
@Georgeisntup
@Georgeisntup Жыл бұрын
How do?
@Georgeisntup
@Georgeisntup Жыл бұрын
I’ve just copied the script but it dosent spawn the zombie
@YaGamerBro
@YaGamerBro Жыл бұрын
@@Georgeisntup im sorry if it dont work but it worked for me
@Wawayep
@Wawayep 7 ай бұрын
the best teacher in whole world, i love your videos. You making amazing job
@SushiFishz
@SushiFishz 3 ай бұрын
at 13:17 my enemies are not deleting why is that
@DaSwagGuy
@DaSwagGuy 11 ай бұрын
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
@AmestipRBLX
@AmestipRBLX 5 ай бұрын
5 months ago, no replies.
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
Try to not run too fast
@soup4568
@soup4568 2 жыл бұрын
8:00 my zombie doesnt spawn in, even tho i followed the whole tutorial can anyone help code: 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:", name) end end return mob pls help
@FireIceGamingYT
@FireIceGamingYT 2 жыл бұрын
Same
@sha1rk
@sha1rk 2 жыл бұрын
@@FireIceGamingYT same i tried too fixing it doesnt show up
@sokar311
@sokar311 2 жыл бұрын
If anyone Is reading this and is having a problem with the Cframe of line 9 just do this.newMob.HumanoidRootPart.CFrame = workspace.GrassLands.Start.CFrame
@sokar311
@sokar311 2 жыл бұрын
@@FireIceGamingYT If anyone Is reading this and is having a problem with the Cframe of line 9 just do this.newMob.HumanoidRootPart.CFrame = workspace.GrassLands.Start.CFrame
@sokar311
@sokar311 2 жыл бұрын
@@sha1rk If anyone Is reading this and is having a problem with the Cframe of line 9 just do this.newMob.HumanoidRootPart.CFrame = workspace.GrassLands.Start.CFrame
@bananymouspastequeymous1503
@bananymouspastequeymous1503 5 ай бұрын
If your zombies can't manage to spawn and you did everything right (scripts and organisation) it could be because your start box still has collision, so start as a player and go in the box to see if it has colision
@Pkschannelfullofstuff
@Pkschannelfullofstuff 5 ай бұрын
my zombies still won't spawn(and it doesn't have collision)
@recklessthomas7738
@recklessthomas7738 4 ай бұрын
Thx so much it’s because of you it’s working again Thx
@bananymouspastequeymous1503
@bananymouspastequeymous1503 4 ай бұрын
@@recklessthomas7738 np
@Flatusfinn
@Flatusfinn Жыл бұрын
Why doesnt my zombie spawn pls help
@Bleechvr
@Bleechvr 6 ай бұрын
10:10 for some reason, my zombies don’t spawn, and I’ve checked all of my script thoroughly, even seen other tutorials and nothing makes them spawn, could it be a model issue?
@ayuboy3689
@ayuboy3689 6 ай бұрын
same
@ayuboy3689
@ayuboy3689 6 ай бұрын
have you found a fix if so please tell me
@ccash4574
@ccash4574 6 ай бұрын
@@ayuboy3689 did you resolve this?
@ayuboy3689
@ayuboy3689 6 ай бұрын
@@ccash4574 yea i just switched around some lines and it worked
@ayuboy3689
@ayuboy3689 6 ай бұрын
@@ccash4574 check the error output spot and locate the error and just use logic to try and resolve it 👍👍
@svlylly
@svlylly Жыл бұрын
Friends, I solved the problem of Zombie not appearing :) code for Mob 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("Requested mob does not exist:", name) end end return mob code for Main local mob = require(script.Mob) local map = workspace.Grassland for wave=1, 5 do print("Wave starting:", wave) if wave
@AnimationallyCool
@AnimationallyCool Жыл бұрын
mob is not a valid member of Script "ServerScriptService.Main"
@awesome4823
@awesome4823 Жыл бұрын
i put ur code but the zombies dont spawn and i did everything he told me to do (gnome) but it keeps showing this error "Mob is not a valid member of Folder "Workspace.GrassLand"
@FPFPFPZo
@FPFPFPZo Жыл бұрын
​@@AnimationallyCoolput whatever you named the module script into (script.mob) Example : Name of module script : Mob So i put in Mob in (script.Mob) Capital letters matter.
@FPFPFPZo
@FPFPFPZo Жыл бұрын
​@@awesome4823Is it the main or mob script?
@the_cloaker
@the_cloaker 9 ай бұрын
@@FPFPFPZo for me its main
@RobloxEnthusiastic
@RobloxEnthusiastic 2 ай бұрын
dang, this still works in 2024 I like your videos keep it up
@kitsune_forest
@kitsune_forest 2 ай бұрын
how did you get around my error at 10:30 Waypoints is not a valid member of Folder "Workspace.Grassland.Waypoints"
@adam_9787
@adam_9787 2 жыл бұрын
My code isn't working, at 8:11 your zombie spawns, but for some reason mine wont. Ive checked my code like a million times and I can't seem to find the error, could u please somehow help me out? If you want to see the script let me know and I will show you what I have so far. Thanks + I love your vids I started watching you yesterday because. I really wanted to make a TD game and I instantly fell in love with your channel! Thanks for all the great vids!
@aestriix9855
@aestriix9855 2 жыл бұрын
did you ever figure this out?
@adam_9787
@adam_9787 2 жыл бұрын
@@aestriix9855 nope
@Zyro1-1
@Zyro1-1 Жыл бұрын
Same here my mob won’t spawn
@Superhandsome4950
@Superhandsome4950 Жыл бұрын
@@Zyro1-1 So do i
@Zyro1-1
@Zyro1-1 Жыл бұрын
Try to follow the video exactly my friend had the same problem and I follow the code perfectly and mine worked.
@britishtingsinnitbruv
@britishtingsinnitbruv Жыл бұрын
at 10:55 my zombie dosent move it just stands still
@supernubic9074
@supernubic9074 4 ай бұрын
same to me buddy
@lukiValent
@lukiValent 3 жыл бұрын
you can also animate the enemies through the module so you dont have to make animate script for every enemy
@MK8Warrior
@MK8Warrior Жыл бұрын
How
@lukiValent
@lukiValent Жыл бұрын
@@MK8Warrior 1 year old post, but I now use another enemy system to animate, with 1 single localscript.
@MK8Warrior
@MK8Warrior Жыл бұрын
@@lukiValent what’s the script?
@lukiValent
@lukiValent Жыл бұрын
@@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 Жыл бұрын
Is your game finished? If so could you help me@@lukiValent
@ElgatopensadorBG
@ElgatopensadorBG 8 күн бұрын
Thank you so much bro
@ConradoDavidTenoriodeHolanda
@ConradoDavidTenoriodeHolanda 2 ай бұрын
Someone help me, when my mob reaches the end it doesn't despawn and the message appears: 12 is not a valid member of Folder "Workspace.Map.Waypoint"
@za.peremoha
@za.peremoha 2 ай бұрын
Happened to me too, have you set your collision groups in this video alone? If so, thats the reason. Turn them off, he shows you how to do the collision groups properly next video. Of course if it isn't that then I dont know what it is.
@SomeScriptMaker
@SomeScriptMaker Жыл бұрын
why when i start the zombie not spawn?
@roblox9728
@roblox9728 Жыл бұрын
EXACTLY
@thogging
@thogging Жыл бұрын
Instead of doing ‘mob.Spawn(“Zombie”, “(your map name)”)’ Do ‘mob.Spawn(“Zombie”, map)’ If this does not work then, I don’t know any other way of fixing
@panzerfaust412
@panzerfaust412 2 жыл бұрын
script for the path finding thing: local zombie = script.Parent local waypoints = workspace.Waypoints for waypoint=1, #waypoints:GetChildren() do zombie.Humanoid:MoveTo(waypoints[waypoint].Position) zombie.Humanoid.MoveToFinished:Wait() end Main: local mob = require(script.Mob) local map = workspace.Grassland mob.Spawn("Zombie", map) Mob: 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:", name) end end return mob idk if this will help people somehow but good luck
@zanithony1276
@zanithony1276 2 жыл бұрын
This helped me alot, so I dont really have to type so much.
@RickWinsR
@RickWinsR 2 жыл бұрын
yoooooo, so uh when i did this part, Moving in unison it didnt work, and by that I mean the zombie/enemy isnt moving, no errors apeared to show up besides one thing i didnt notice that showed up on your output, it says infinate yield possible on Workspace.OuterRim(my map name):WaitForChild("Humanoid) I dont know if anyone would help me on this but it would be greatly appritretied.
@Geehwbbwbevwvevrvrbfh7171
@Geehwbbwbevwvevrvrbfh7171 2 жыл бұрын
it not finish script it undone so u can continue
@RickWinsR
@RickWinsR 2 жыл бұрын
@@Geehwbbwbevwvevrvrbfh7171 its not dat i was gonna ask if u can help me with a future part, the one where you spawn mutliple but it has to wait till the end, it doesnt work for me so i was gonna ask if u can help
@2DMage
@2DMage 2 жыл бұрын
I’m having the issue where the enemies won’t go away at the end of the path and I keep getting something saying “44 is not a valid member of Folder “Workplace.Grassland.Waypoonts” I have 43 way points, there isn’t supposed to be a 44th waypoint so idk what to do
@creepermods4641
@creepermods4641 Ай бұрын
18:35 The code seems pretty much deprecated, just because as if someone is spawn killing the enemies, therefore the code will thinks that no enemies are around in the folder, then the code will proceed to the next wave. Edit: But the enemies are still spawning, and it proceeds to the next wave, which is pretty much deprecated and not recommended. This is the main problem.
@real_kyoto
@real_kyoto Жыл бұрын
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 10 ай бұрын
i think u need to put wave, quanitity, map
@smilecoder801
@smilecoder801 5 ай бұрын
@@Blue-Square ye im pro coder you do need to put that
@justygaming0
@justygaming0 Жыл бұрын
How do i make models without the humanoid part move around the track?
@The_annoying1
@The_annoying1 8 ай бұрын
TweenService
@hambugha21
@hambugha21 2 жыл бұрын
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 2 жыл бұрын
Btw I’m on the moving in unison one
@MartyMcRy
@MartyMcRy 2 жыл бұрын
@@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
@DribblePlayz635
@DribblePlayz635 4 ай бұрын
TYSM BRO I REDID THIS VIDEO NOT ONLY ONE TIME BUT TEN TIMES AND ITS BECAUSE MY SPELLING THANK YOU SO MUCH I NEED TO WATCH YOU MORE
@mmmm1842
@mmmm1842 4 ай бұрын
HOWDID YOU DO THE 10:40 PART
@mmmm1842
@mmmm1842 4 ай бұрын
OR MAKE A VIDEO ABOUT IT PLEASEE
@Beo152_1
@Beo152_1 Ай бұрын
@@mmmm1842 DID YOU FIGURE IT OUT AND DID YOU FINISH THE WHOLE VIDEO COULD YOU PLEASE TELL ME HOW IF YOU HAVE DONE IT
@jrpl8661
@jrpl8661 Жыл бұрын
This took me two hours 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 --- Bro just so lazy :Skull:
@jrpl8661
@jrpl8661 Жыл бұрын
Idk if it works for yall but it works for me.
@jakeromnicmarfori4330
@jakeromnicmarfori4330 Жыл бұрын
I tried it and it worked
@bruh-hg8mn
@bruh-hg8mn Жыл бұрын
It worked
@NotSoKingethThyBob
@NotSoKingethThyBob 4 ай бұрын
life saver
@GreenLimbo
@GreenLimbo 3 жыл бұрын
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 3 жыл бұрын
same
@hyperplayer7499
@hyperplayer7499 2 жыл бұрын
@@ritzed7995 same
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
Bro the module is already called enemy so you have to use a different name as a parameter. You are literally trying to call a function from a empty table.
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
This means using a parameter like "mob" while having the parameter a different name from the module script name.
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
Basically, if a script is already containing "enemy", trying to call the function from "enemy.Move" will break as it literally doesn't exist because you never returned the function
@adamwest1
@adamwest1 9 ай бұрын
for anyone who didnt know to copy and paste at 8:51 heres the script: local zombie = script.Parent local waypoints = workspace.Waypoints for waypoint=1, #waypoinnts:GetChildren() do zombie.Humanoid:MoveTo(waypoints[waypoint].Positio) zombie.Humanoid:MoveToFinished:Wait() end
@total_blasphemy
@total_blasphemy 8 ай бұрын
you mispelled the #waypoints part
@EliteGoji
@EliteGoji 6 ай бұрын
@@total_blasphemy and position
@total_blasphemy
@total_blasphemy 6 ай бұрын
@@EliteGoji 2 months ago 😭
@EliteGoji
@EliteGoji 6 ай бұрын
So what? ​@@total_blasphemy
@total_blasphemy
@total_blasphemy 6 ай бұрын
@@EliteGoji ..
@Pikabeany
@Pikabeany Күн бұрын
At 10:53 / 20:21, my zombie doesn't seem to be moving? Like I did this mob.Move(newMob, map), but it still doesn't work. If somebody can help me out, that would be fantastic
@Pikabeany
@Pikabeany Күн бұрын
Nvm i got it, BUT NOW I CANT DO 18:38 😥😥😢😢😥😥😢😢
@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 Жыл бұрын
Same!!
@BloxBlueY
@BloxBlueY Жыл бұрын
me too
@Roblotic21
@Roblotic21 7 ай бұрын
Make a rig
@supergluetatoo
@supergluetatoo 10 күн бұрын
Mine has it it just won't work for some reason
@TOTALLY_WHY
@TOTALLY_WHY 5 ай бұрын
I got an error anytime I do everything right it doesn’t spawn them please help me
@MetalSonicMe1
@MetalSonicMe1 4 ай бұрын
bro same
@GamingwithGlitched
@GamingwithGlitched 4 ай бұрын
@@MetalSonicMe1 same
@ero_films
@ero_films 10 ай бұрын
My Error says Requested mob does not exist ▼ { ["Move"] = "function", ["Spawn"] = "function" } - Server - Mob:22 please help!
@bloxmanlikezcola
@bloxmanlikezcola 6 ай бұрын
i got the same thing
@GoatedTsbPlayer
@GoatedTsbPlayer 5 ай бұрын
1: Make sure you are NOT using "mob" or your module table name or this will break 2: Make sure you are actually sending the correct parameters or moving breaks 3: Make sure your mob is not too fast that u cant see 4: Make sure you set network ownership and placed it in workspace 5: Make sure you never use "mob" in the coroutine 6: Make sure when you call the coroutine like: coroutine.wrap(mob.Move)(newMob, mapExists) 7: Make sure you are not sending the mob and the newMob that is a clone 8: Make sure your enemy has a primaryPart and a humanoid 9: Check you actually have waypoints and the move is not called after moving to the end 10: Check you are finding mobs in replicatedStorage and put the mobs in there or it will break If something is still wrong send me ur code
@ServiceSaga
@ServiceSaga 2 ай бұрын
If the coding is the same as above, and there are still errors, pay attention to part 2, make sure anchored is checked, and also pay attention to the folder format. This works. And if you try to delete, but the wave not coming, please check your debug type, don choose play, but choose run (F8)
@mrmut3
@mrmut3 3 жыл бұрын
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 3 жыл бұрын
Kinda agree quite hard too follow
@NooberRoblox-2024
@NooberRoblox-2024 Жыл бұрын
Guys here is the script l made but the movement does not work any idea l will share the script with yall guys 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 end 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 mob.Move(newMob, map) else warn("Requested mob does not exist:", name) end end return mob Thanks for 1 like
@AngelOf2083
@AngelOf2083 2 ай бұрын
thx my hero you made it 10 month ago but until today its work ! its been 1H searching to find the issue but here you are thanks man !
@BlackDragon1Games
@BlackDragon1Games 6 күн бұрын
it worked for me, youre the best!
@bonkanator3645
@bonkanator3645 2 жыл бұрын
(Someone pls tell me how to fix this) When I run the game it only spawns one mob and it doesn't even move Edit: I fixed it
@shaiwon4431
@shaiwon4431 2 жыл бұрын
how do you fix it pls tell me
@ironcrusher7905
@ironcrusher7905 2 жыл бұрын
how do you fix it
@pressterra2030
@pressterra2030 2 жыл бұрын
how
@nebo_nebo123
@nebo_nebo123 2 жыл бұрын
HOW
@Mannastrid
@Mannastrid 6 ай бұрын
HOW DID YOU FIX IT
@alexandersalazar4371
@alexandersalazar4371 6 күн бұрын
yo my zombies ain't spawning I did all the excact code as yours even redo the intire mob script and my zombies still won't spawn?
@finnegandahl0918
@finnegandahl0918 5 күн бұрын
same they wouldnt move
@luke5964
@luke5964 3 жыл бұрын
at 0:42 for him it shows service script but dosent for me on roblox studio. why is this?
@MannyMyDude
@MannyMyDude 8 ай бұрын
You have to add it before you start Am I too late?
@danigetahunyapuow5041
@danigetahunyapuow5041 5 ай бұрын
@@MannyMyDude maybe
@EatyBeets-ig2wk
@EatyBeets-ig2wk 5 ай бұрын
Bro, can anyone help me with the CFrame? All i need to know is how to fix an 'index nil'.
@Poggergod1
@Poggergod1 4 ай бұрын
Did you end up ever finding the answer because i am having the same proble myself?
@trfanon
@trfanon 6 ай бұрын
Please Can Someone Help Me With This my output seems to be saying "attempt to index nil with 'GetChildren'" from line 8 of my code (which is the for the for loop) if someone would help me then I would greatly appreciate it Edit: I Fixed It :D i just did a bit of tweaking
@FabulousFacts9399
@FabulousFacts9399 3 ай бұрын
How dy fix it?
@peterboggess4315
@peterboggess4315 6 ай бұрын
14:14 for mine it says invalid "for" got nil, is it outdated???
@Cookie_999
@Cookie_999 7 ай бұрын
why did my zombies not spawned ( i did scripts right)
@mrbreadloaf-k7o
@mrbreadloaf-k7o 6 ай бұрын
Idk
@Bleechvr
@Bleechvr 6 ай бұрын
Yeah same thing here, I’ve looked through similar comments and they said that it had something to do with the model but idk
@recklessthomas7738
@recklessthomas7738 4 ай бұрын
Same don’t worry you did everything right it’s just the video is old and scripting has changed a bit
@EddieCauseWhyNot
@EddieCauseWhyNot 4 ай бұрын
It’s outdated, just dislike the vid and find a different turoriapt
@VanCoooover
@VanCoooover Ай бұрын
@@EddieCauseWhyNot Why whold people dislike a video becouse Roblox changed?You want people to dislike something compleatley diffrent?
New Mob Types + Animations  - Tower Defense Tutorial #3
20:29
GnomeCode
Рет қаралды 535 М.
How to make a Tower Defense Game -  #1 Path Navigation
8:17
GnomeCode
Рет қаралды 2,3 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
I Made My Own Toilet Tower Defense Game | ROBLOX
8:29
JOHN ROBLOX
Рет қаралды 389 М.
Can 5 Devs make a STORY GAME in 24 HOURS?
19:55
CodeBro29
Рет қаралды 154 М.
Revive Purchases & Spectate - Doors Tutorial #15
19:36
GnomeCode
Рет қаралды 2,8 М.
I spent 1000 DAYS Building My Roblox Game!
12:23
DeHapy
Рет қаралды 305 М.
I Asked Roblox Billionaires How To Get Rich
41:51
CubeINC
Рет қаралды 3,1 МЛН
I Played Every Roblox Tower Defense Game
27:01
propellars
Рет қаралды 1,1 МЛН
Can 6 DEVS Make a Tower Defense Game Without Communicating?
14:01
TDS, But Every Tower is RANDOMIZED!
22:36
CORSO
Рет қаралды 360 М.
How I beat hardcore.. (TDS Update)
10:48
Elite
Рет қаралды 4,3 МЛН