New Mob Types + Animations - Tower Defense Tutorial #3

  Рет қаралды 449,246

GnomeCode

GnomeCode

Күн бұрын

Our Tower Defense game continues to grow with the introduction of 3 new mob types along with some animations for each. We also fix some potential problems with network ownership and collision groups.
MY MOBS FREE MODEL► www.roblox.com/library/826683...
DISCORD ► / discord
TWITTER ►@gnomecodeRBLX
TIMESTAMPS►
0:00 Intro
0:19 Setting up new mobs
2:49 Collision Groups
9:25 Network ownership
11:08 Animations
18:00 Improving enemy waves
19:55 Outro

Пікірлер: 4 400
@GnomeCode
@GnomeCode 2 жыл бұрын
If you're having trouble with your player collisions I'd suggest changing CharacterAdded to CharacterAppearanceLoaded in your OnPlayerAdded script. This should give the character a bit more time to load in before it tries to assignt he collision groups.
@PIXEL137
@PIXEL137 2 жыл бұрын
It work thx 😎😎😎
@GamingwithPaul.
@GamingwithPaul. 2 жыл бұрын
how do you make attack animations from the enemies like stunning properties?
@DustedMain
@DustedMain 2 жыл бұрын
I almost had a heart attack of relief when that worked
@xophroblox8199
@xophroblox8199 2 жыл бұрын
Thanks But I cant get the animations working :/
@gamingwithjosh6284
@gamingwithjosh6284 2 жыл бұрын
YESS I tried like 5 times and it wouldn’t work but then I saw this comment and tried what you said and it worked thx a lot!
@PineBloxx
@PineBloxx 2 жыл бұрын
This series keeps getting better as it goes along! Keep this up Gnome! It’s Amazing ⭐️⭐️👍
@BirdyKongy
@BirdyKongy 2 жыл бұрын
agreeed the best i ahd seen ngl lol
@KarlisTaken
@KarlisTaken 2 жыл бұрын
can someone send me the main script mine seems to be doesn't work :(
@PenguinScript
@PenguinScript 2 жыл бұрын
​@@KarlisTaken
@tab-so7zx
@tab-so7zx Жыл бұрын
@@KarlisTaken Try to check the script correctness. Maybe it help
@spikyspyeye
@spikyspyeye 4 ай бұрын
I very agree with that answer
@FrostialSamTT
@FrostialSamTT 11 ай бұрын
If you got stuck on setting the collision groups because of the new physics service update heres the script for changing the mobs collision group: (Reccomending to change variables as it varied and don't forget to make sure collision group tables work and are the correct names. I think some parts are depracated so you might need to change Part to BasePart, unless your character models use unions) for i, object in ipairs(newMob:GetDescendants()) do if object:IsA("Part") then object.CollisionGroup = "Mob" end end
@McChillington3
@McChillington3 11 ай бұрын
thank you
@Geehwbbwbevwvevrvrbfh7171
@Geehwbbwbevwvevrvrbfh7171 11 ай бұрын
THANK YOU OMG I'VE BEEN FIXING THIS AND NOW YOU? YOU FIXED IT YESSS GO FUCKIN
@themajoristic1
@themajoristic1 11 ай бұрын
Ah i appreciate it dude
@ToasterDoodleYT
@ToasterDoodleYT 11 ай бұрын
i copy and pasted everything and for some reason my player still collides with the enemies? do you know how to fix this?
@YaGamerBro
@YaGamerBro 11 ай бұрын
thank you
@fastkiwi9646
@fastkiwi9646 Жыл бұрын
Love how you describe every function well, along with the purpose. Thank you for teaching me GnomeCode ! :]
@jezzthedevofficial
@jezzthedevofficial Жыл бұрын
Hey dude, r u making ur own wave system like me? Bc im having trouble with it bc its just sending the waves out straight away...
@simvoid4347
@simvoid4347 Жыл бұрын
@@jezzthedevofficial I'm guessing after 3 months you solved the problem but for anyone else with a similar issue: you probably accidentally removed or forgot to repeat task.wait() until there are no more mobs on the map
@jezzthedevofficial
@jezzthedevofficial Жыл бұрын
@@simvoid4347 yep lol
@Pokesheen
@Pokesheen 3 ай бұрын
this series has helped me out so much! thanks so much for making it
@jigglyjosh5047
@jigglyjosh5047 2 жыл бұрын
i have been waiting all day, im so glad you came out with a new episode every other day or so!
@o17oo87
@o17oo87 2 жыл бұрын
I've been wanting to make a TD game for ages, this has allowed me to achieve my goals!
@Grinderjosh
@Grinderjosh 10 ай бұрын
what game u made can u help me?
@akiprox7
@akiprox7 Жыл бұрын
These series are amazing! Everything works! Tysm!
@dogegaminglivestreamchanne4696
@dogegaminglivestreamchanne4696 Жыл бұрын
15:31 just saving my spot also keep up the good work gnome :) 👍
@TabbyDev
@TabbyDev 2 жыл бұрын
Great series, works, can't wait till the tower system is implemented!
@4meer68
@4meer68 2 жыл бұрын
honestly your channel is underrated. you are definitely my favorite roblox developer youtuber. thank you for all the tutorials and explaining videos on developing :) have a good day
@justaizee2
@justaizee2 3 ай бұрын
he deserves his 100k playbutton
@piper000
@piper000 10 ай бұрын
nice tutorial! you motivated me into become a game developer. you earned yourself a new subscriber
@Vandezza
@Vandezza Жыл бұрын
So helpful, super awesome tutorials, I personally struggle when trying to use other Mobs that aren't provided by you, but it still working pretty great
@popaccelerator-ox2mg
@popaccelerator-ox2mg Жыл бұрын
True but on last part he did script and I didn’t know how to do it so I just watched next tutorial
@iam100percentaurl
@iam100percentaurl 11 ай бұрын
​@@popaccelerator-ox2mgreply to me if ur having mob collision troubles
@VictorTheScripter
@VictorTheScripter 5 ай бұрын
@@iam100percentaurl im having trouble
@murganes3107
@murganes3107 2 жыл бұрын
Thanks for the series it's really amazing, I love how you explain everything !!
@Yeilding_HD
@Yeilding_HD 2 жыл бұрын
I already watched the series and its getting better and better I'll keep watching it til the end 👌
@user-zh3xf5hb7t
@user-zh3xf5hb7t 6 ай бұрын
Thanks, Gnome!
@jeron12
@jeron12 Жыл бұрын
love ur vids bro u motivate me to make the games i could never make.
@theninjajayden7869
@theninjajayden7869 2 жыл бұрын
Amazing! Ive built a sort of noob fighting game? I guess and your explanation is really good... You zoom in on the different important stuff just amazing!
@Unlucky-9172
@Unlucky-9172 2 жыл бұрын
I might actually try this because its so satisfying seeing things come together
@tinyguyanimates
@tinyguyanimates Жыл бұрын
true
@user-tq1lu6us7x
@user-tq1lu6us7x 7 ай бұрын
thanks Gnomecode i was tried and tried and it work!
@dippychip
@dippychip 10 ай бұрын
i love this series
@DustedMain
@DustedMain 2 жыл бұрын
My friend really wanted me to make a tower defense and your tutorials are really helpful
@wexzy4037
@wexzy4037 2 жыл бұрын
This Is The Best Tower Defense Tutorial i Have Ever Seen You Earned My Sub Keep Up With The God Series
@GnomeCode
@GnomeCode 2 жыл бұрын
Thanks so much, I really appreciate the support!
@wexzy4037
@wexzy4037 2 жыл бұрын
@@GnomeCode No Problem But There Is An Bug Or An Error Or Something For Me Cuz My Player Has No Collision To The Mobs
@ChirpFPV
@ChirpFPV 2 жыл бұрын
@@wexzy4037 the tutorial said to disable collisions to the mobs in the collision groups section of this video
@wexzy4037
@wexzy4037 2 жыл бұрын
@@ChirpFPV ik and i did that
@ChirpFPV
@ChirpFPV 2 жыл бұрын
@@wexzy4037 so then your player has no collision to the mobs
@botixya2023
@botixya2023 Ай бұрын
Love you so much dude :)
@ulovmt
@ulovmt 2 жыл бұрын
Thanks so much. I am a big tower defense fan and thinking that I can make my own soon I am very happy.
@goatgameryt2059
@goatgameryt2059 2 жыл бұрын
I am totally hyped for the whole series since I'm making my own game like this and i love the series. Keep it, GnomeCode
@funnigher251
@funnigher251 2 жыл бұрын
Nice! Hope you game does well
@marestelaadlaon2064
@marestelaadlaon2064 5 ай бұрын
I love your game gnome code
@daryljoysarabosing297
@daryljoysarabosing297 Ай бұрын
if anyone is wondering how to fix the slow enemys skipping waypoints use this function mob.Move(mob, map) local humanoid = mob:WaitForChild("Humanoid") local waypoints = map.Waypoints for waypoint=1, #waypoints:GetChildren() do repeat humanoid:MoveTo(waypoints[waypoint].Position) until humanoid.MoveToFinished:Wait() end mob:Destroy() end
@its_me_loki04
@its_me_loki04 Ай бұрын
Hey bro do you know how to fix the collide? it doesn't work one me it's still colliding please help bro
@BlueWithaFruit
@BlueWithaFruit Ай бұрын
@@its_me_loki04 yo use this for i, object in ipairs(newMob:GetDescendants()) do if object:IsA("BasePart") then object.CollisionGroup = "Mob" end end
@Sub-to-lag-gaming
@Sub-to-lag-gaming Ай бұрын
Not all heroes wear capes, unless you do wear a cape!
@NS_teah
@NS_teah Ай бұрын
I just added more waypoints to fix it
@aybar2599
@aybar2599 Ай бұрын
thank u so much bro
@scriptintoplaces2382
@scriptintoplaces2382 2 жыл бұрын
this series is amazing! i cannot wait until part 4.
@builderrhys3112
@builderrhys3112 2 жыл бұрын
lol
@FrowningWind213
@FrowningWind213 8 ай бұрын
its already here
@allense3915
@allense3915 2 жыл бұрын
I like the way while i was waiting for part 3 to come out i was doing what was coming in this video (basically i did the whole thing in this vid even when it wasn't out)
@GnomeCode
@GnomeCode 2 жыл бұрын
Pro!
@Databat123
@Databat123 4 ай бұрын
As I was going through the code, I seem to have ran into every problem everyone else was having. The animation alone almost got me, good thing it was a simple fix in the end LOL
@ronrongoduse7719
@ronrongoduse7719 3 ай бұрын
What's the fix?
@Alleexx3
@Alleexx3 6 ай бұрын
You deserve a sub
@Nachoegg
@Nachoegg 2 жыл бұрын
love how he also teaches us how to fix problems
@Dexhammy
@Dexhammy 2 жыл бұрын
... yes and no
@minigunner4045
@minigunner4045 2 жыл бұрын
@@Dexhammy Yesn't
@angomango173
@angomango173 5 ай бұрын
that 'oooh heres teddy' at 20:12 got me 😭😭
@akiprox7
@akiprox7 Жыл бұрын
Tysm man!
@tinpothead6586
@tinpothead6586 2 жыл бұрын
this is so good thank you so much it's helping ALOT Edit: Can you do towers next?
@user-ir8fn8mm8l
@user-ir8fn8mm8l 2 жыл бұрын
He will do
@ZyxFrontier
@ZyxFrontier 2 жыл бұрын
This is EXTREMELY helpful to me as I keep making Tower Defense games with kits and free models.
@SilverFox725
@SilverFox725 2 жыл бұрын
same
@Grinderjosh
@Grinderjosh 10 ай бұрын
hey wanna work together? i wanna make KZbinr Tower defense simulator
@erikwilliams1562
@erikwilliams1562 9 ай бұрын
Great series! My son is burning through these trying to create a game but looks like Roblox has updated their coding.... are you planning to make any follow-up videos?
@yuzy5896
@yuzy5896 3 ай бұрын
same! i really hope he is. get this comment to the top!
@squigglesz
@squigglesz 3 ай бұрын
Your a good dad
@cyb3r._.
@cyb3r._. Жыл бұрын
@GnomeCode for some reason when I got your pack, the teddy animsave was glitched and didn't work (there wasn't a proper animation) i also found your pack on the toolbox just by searching, but that had the same problem any fixes? also, for some reason the first zombie i spawn in the first wave doesn't have the animation, although everything before and after it does, any explanation for this?
@BelarussianIdiot
@BelarussianIdiot 5 ай бұрын
just make your own enemies
@Rip_Among_sus
@Rip_Among_sus 2 ай бұрын
i have same problem tho
@RobloxGamerX
@RobloxGamerX 2 жыл бұрын
This is a really helpful series thanks so much.
@GnomeCode
@GnomeCode 2 жыл бұрын
Glad to hear it!
@Alpha_Arcade
@Alpha_Arcade 2 жыл бұрын
Even though I have the configurations with the animations inside of them, the enemies still wont play their animation that the script instructed them to do. What could it be due to?
@thealtaccount9982
@thealtaccount9982 8 күн бұрын
I think I have the same problem, I don't know.
@Pectoryigit123
@Pectoryigit123 4 ай бұрын
Cool man
@TheGoofyAvenger
@TheGoofyAvenger 5 ай бұрын
for those who had issues with the waves and their enemies, here's the simple way to do it: for wave=1, 10 do print("Wave", wave ,"started") if wave == 1 then mob.Spawn("Zombie", 2 * wave, map) end if wave == 2 then mob.Spawn("Zombie", 2 * wave, map) end if wave == 3 then mob.Spawn("Zombie", 2 * wave, map) end and so on
@WhyIsSveenyTaken
@WhyIsSveenyTaken 5 ай бұрын
The zombie spawns fine but for my second mob I wanted to make a custom one, but whenever I put it into the script they spawn in but don't move. The error says "Network Ownership API cannot be called on anchored parts or parts welded to Anchored parts" is there a fix
@Aigamer120
@Aigamer120 5 ай бұрын
@@WhyIsSveenyTaken did u unanchor it?
@eggguyrblx9319
@eggguyrblx9319 3 ай бұрын
Sorry if this is a dumb question but how do I make it so it doesn’t multiply by itself every wave I can’t figure it out
@jayenku
@jayenku 2 ай бұрын
@@eggguyrblx9319 not sure if you arleady found out but just remove the "* wave" and set it to the number you want
@Itsanegg1
@Itsanegg1 28 күн бұрын
tysm this really helped
@MableyLisa
@MableyLisa 2 жыл бұрын
Thanks! These tutorials are super helpful and clear.
@Chip_-mw5nm
@Chip_-mw5nm 2 жыл бұрын
Money
@alexskorpik11play79
@alexskorpik11play79 2 жыл бұрын
@@Chip_-mw5nm money
@BlueBlaze_Offical
@BlueBlaze_Offical 2 жыл бұрын
@@alexskorpik11play79 money
@Its_Yanzi
@Its_Yanzi 2 жыл бұрын
@@BlueBlaze_Offical money
@timothysheridan9409
@timothysheridan9409 2 жыл бұрын
@@Its_Yanzi money
@funnyquarantine2858
@funnyquarantine2858 2 жыл бұрын
If you want to alternate between enemies: for i = 1, (number) do mob.Spawn(type1, 1, map) mob.Spawn(type2, 1, map) end
@SilverFox725
@SilverFox725 2 жыл бұрын
whats alternate between enemies?
@roboticgames2989
@roboticgames2989 10 ай бұрын
@@SilverFox725 like one zombie 1 mech 1 zombie 1 mech one zombie 1 mech
@placeholerwav
@placeholerwav Жыл бұрын
tip: if you want to make a custom tower, just delete the mesh for the drooling zombie model and start designing, you dont need to make any animations or do any hard work.
@tableduck-
@tableduck- Жыл бұрын
do u mean mob?
@Q3rp1e_xed
@Q3rp1e_xed Жыл бұрын
@@tableduck- same thing
@wyattconlon4310
@wyattconlon4310 Жыл бұрын
tysm for this tutorial
@redrune1860
@redrune1860 2 жыл бұрын
Earlier I was struggling with collisions. Thanks for fixing my issue!
@RobinDeTrollBoy
@RobinDeTrollBoy 2 жыл бұрын
im having the same issue can u tell me what was wrong with urs and how it was fixed cuz it might be a bit like mine
@indominusvoids8798
@indominusvoids8798 2 жыл бұрын
@@RobinDeTrollBoy make players r16, to fix it.
@GoobleMcScrooble
@GoobleMcScrooble 2 жыл бұрын
The series is great and really helps alot! But I still cant figure how how to improve the enemy waves because it always ends up not spawning any enemies
@waktk
@waktk 2 жыл бұрын
it spawns too much zombies for me
@bodepdzai5457
@bodepdzai5457 2 жыл бұрын
yeah
@sraiaan
@sraiaan 2 жыл бұрын
@@waktk the amount of enemies multiplies each wave, and at wave 5, 500 zombies spawn because he put 100 x wave for the zombies one.
@waktk
@waktk 2 жыл бұрын
@@sraiaan i didnt put the * for my waves
@Averageidiot1014
@Averageidiot1014 2 жыл бұрын
@@waktk "*" means multiplie the number
@PokePawn0189
@PokePawn0189 22 күн бұрын
10:10 just marking my spot great tutorial so far 🦆
@BloxxerOriginal
@BloxxerOriginal 6 ай бұрын
BRO THANK YOU SO MUCH
@QuizzesG
@QuizzesG Жыл бұрын
I love your tutorials my tower defend game will be tower of glory
@that1gamerlad98
@that1gamerlad98 2 жыл бұрын
Add people from your Discord as enemies, it would be fun to see some people like Richard running around XD
@__tani
@__tani 2 жыл бұрын
Bread enemy👹
@hugoalt4868
@hugoalt4868 2 жыл бұрын
I would love to see an imposter gnome one was well
@trhrichard
@trhrichard 2 жыл бұрын
Me running around?
@aqieefimt
@aqieefimt 2 жыл бұрын
ah yes, add me >:D
@pedror1439
@pedror1439 2 жыл бұрын
pr o
@peavine7849
@peavine7849 2 жыл бұрын
It would be nice to see a tutorial on how to work lobby elevators/teleporters
@Klebty
@Klebty 3 ай бұрын
there is one
@DANKO243
@DANKO243 2 ай бұрын
@@Klebty you're late this comment was 1 year ago.
@foxycrack3421
@foxycrack3421 9 ай бұрын
Hello, I know it's been a long time since you uploaded this video but to see if you can upload it again or make another one where you improve the collision script, they changed it :)
@alternateB
@alternateB Жыл бұрын
GnomeCode your tutorials are awesome! I have a problem though. I cant publish the zombie animation or the teddy animation. it keeps saying submission failed. and in the output, its gonna say "hsr data for (any limb) is empty when upload. am I doing something wrong?
@alternateB
@alternateB Жыл бұрын
Oh gaming I found out what the problem is. The thing is that Roblox Studio thinks that the zombie is R15 even though its clearly R6. The "hsr data" was only missing for the extra limbs that R15 comes with. I only found out what the real problem is though and I still don't know how to fix this.
@gogogamedev
@gogogamedev 2 жыл бұрын
The reason the r15 models don't work with collision groups is because the model takes longer to load all the parts. So just put a wait before going through the loop so they all loaded.
@RoundTheClockGamer
@RoundTheClockGamer 2 жыл бұрын
Thanks! That fixed my script!
@sam-clashofclans1554
@sam-clashofclans1554 2 жыл бұрын
Thank you
@playeretihad
@playeretihad Жыл бұрын
thank you
@elmerrthegamer
@elmerrthegamer 7 ай бұрын
How log do I put wait?
@forgeon9898
@forgeon9898 2 жыл бұрын
You're the best! I am 11 years old and I am learning from you. I gave you subs and paws for all the movies, but I feel that it is still not enough. THANK YOU GNOM!
@coolestHurensohn195
@coolestHurensohn195 2 жыл бұрын
im also 11 and yeah these tutorials are reallly good
@polyaro2504
@polyaro2504 Жыл бұрын
You need to be 13+ to make a youtube account
@DaKingBread
@DaKingBread Жыл бұрын
@@polyaro2504 Thats just you lmfao. I made mine at 10. I'm 13 now.
@HexDoesStuff
@HexDoesStuff Жыл бұрын
@@polyaro2504 No one cares
@polyaro2504
@polyaro2504 Жыл бұрын
@@HexDoesStuff Dogs don't care they listen
@_RealKitsu_
@_RealKitsu_ 7 ай бұрын
nice tutorial
@voidplays9613
@voidplays9613 10 ай бұрын
If your having trouble with this new colision update u can simply turn the mobs colisions off in their properties and im pretty sure in settings of your game you can disable player colision hope it helped
@trafed898
@trafed898 10 ай бұрын
Where I off the properties
@VRonYoutube
@VRonYoutube 9 ай бұрын
can you help me?
@voidplays9613
@voidplays9613 9 ай бұрын
Ye I can help
@voidplays9613
@voidplays9613 9 ай бұрын
Go in the comments and do what gnomecode commented that should work
@VRonYoutube
@VRonYoutube 9 ай бұрын
@@voidplays9613 I played around with the settings and changed some words and it worked. It's an easy fix, just need to pay close attention and tweak some stuff.
@avnethead
@avnethead 2 жыл бұрын
At this point i dont even watch the tutorials to learn about scripting, I watch them since i like gnomecodes voice
@GnomeCode
@GnomeCode 2 жыл бұрын
GnomeCode ASMR lol
@jimmygaming3101
@jimmygaming3101 2 жыл бұрын
lol
@I_Q534
@I_Q534 2 жыл бұрын
Bruh im dying of cringe
@matthewn4988
@matthewn4988 2 жыл бұрын
Great job, I love this so far. Thanks for your pinned comment. I would like to say however when using walk with Teddy and Zombie, for me (could be this newest version of Roblox) it does not run their animation / half runs them. I tested multiple different animations for the Zombie and it really only puts their hands out and does not move their legs (idk why) and Teddy has no changes and no walk animation even though it says he has one and it does not create any errors. Do you know if this is your animations getting outdated or not fitting the character sizes as r6 and r15s are different or what?
@matikawaii1452
@matikawaii1452 2 жыл бұрын
He says that zombie and teddy dont have animations
@FakeCletus
@FakeCletus Жыл бұрын
@@matikawaii1452 Really??
@matikawaii1452
@matikawaii1452 Жыл бұрын
@@FakeCletus yeah you have to make your own
@FakeCletus
@FakeCletus Жыл бұрын
@@matikawaii1452 Yeah.. about that the zombie one I already have the animation but the teddy one IDK how to make one..
@FakeCletus
@FakeCletus Жыл бұрын
@@matikawaii1452 Yep already done ty.
@happy_red3d708
@happy_red3d708 Жыл бұрын
Thanks for the video, but I have a question: and for some reason the collision of the body of the players remained, although it did not hurt the arms and legs. please help me
@donut844
@donut844 2 жыл бұрын
At the end, when I tried to improve enemy waves, it says "Syntax error: Expected , got 'elseif'", and I don't know how to solve it.
@MultiTypeYT
@MultiTypeYT 2 жыл бұрын
delete the "elseif" and all code associated with it, as is "end of function". then rewatch the section.
@PurpleGengarx
@PurpleGengarx 3 ай бұрын
local Players = game:GetService("Players") local PhysicsService = game:GetService("PhysicsService") PhysicsService:RegisterCollisionGroup("CharacterCollisionGroup") PhysicsService:CollisionGroupSetCollidable("CharacterCollisionGroup", "CharacterCollisionGroup", false) Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) for Index, BodyPart in pairs(Character:GetChildren()) do if BodyPart:IsA("Part") or BodyPart:IsA("MeshPart") then BodyPart.CollisionGroup = "Player" end end end) end)
@SkyDev1.
@SkyDev1. 3 ай бұрын
tysm bro hope your pillow is cold forever
@Chicken_gunner306
@Chicken_gunner306 2 ай бұрын
Thank you, this really work
@cubbyduck
@cubbyduck 19 күн бұрын
Absolute godsend
@cheddar_rblx2695
@cheddar_rblx2695 8 ай бұрын
Am I able to add particle effects to my zombies? ive tried it once but for some reason, it didnt work
@TopDuck521
@TopDuck521 9 ай бұрын
thank u too much ur awesome
@khrukhy_dev6932
@khrukhy_dev6932 11 ай бұрын
For the people that say that mobs are skipping checkpoints, Instead of scripting, I put like 2 or 3 more checkpoints each path instead of only in yhe corners, so that slow mobs are all the time getting into checkpoints and not skipping bc of the time
@user-cj7wh7wc4d
@user-cj7wh7wc4d 10 ай бұрын
bro u saved me
@maemgi1312
@maemgi1312 10 ай бұрын
Thank you man, You're a life saver
@node5335
@node5335 9 ай бұрын
OMG TYSM I LOVE YOU
@Dragondax29
@Dragondax29 7 ай бұрын
Bros lifesaving without trying😅
@gokilcool5298
@gokilcool5298 6 ай бұрын
Tysm for helping me with that!!!
@Wazzalish
@Wazzalish 2 жыл бұрын
Just an idea for new episodes, maybe when you make towers you do 2 towers per episode. Also please make a video on making a farm and sniper tower.
@lukiValent
@lukiValent 2 жыл бұрын
Snipers would be interesting since it would need cliffs to be placed
@tomfooIeryz
@tomfooIeryz 2 жыл бұрын
not exactly, look at tbz with their sniper, and also hunter from tds is pretty much just a sniper on the ground
@lukiValent
@lukiValent 2 жыл бұрын
@@tomfooIeryz that's of course super easy to make, just grab a basic tower and set it's fire rate to slow
@gavinmcgowan1854
@gavinmcgowan1854 2 жыл бұрын
@@lukiValent is it?? animations, making the sniper, and other stuff
@Somftix
@Somftix 2 ай бұрын
Thanks 😊
@martinpetr4137
@martinpetr4137 Жыл бұрын
hello Gnome i dont know if you re still reading this but i wanted to ask if u could do video how to create your own enemy type
@tonklachannel6181
@tonklachannel6181 2 жыл бұрын
part 4 suggestion: 1. Place tower system 2. make support tower(like commander that give the buff in tds and dj that give you discout buff in tds) 3. make unit tower(like clook boss and military base in tds) 4. Make cliff tower and cliff mods 5. Make fram tower that give you money per wave 6. More maps(when you go to elevator you gonna go to main game but it change map as well as the elevator said) THAT IS(if it too much you can skip to other part) bye
@tomfooIeryz
@tomfooIeryz 2 жыл бұрын
me when people say “like in tds” when TDS copied TB: Also, making unique towers is better than copying a game, legit not every single TD game should copy TB like TDS did. And DJ gives a range boost and a discount boost, not just a discount boost.
@DailyD5
@DailyD5 Жыл бұрын
@@tomfooIeryz nah bro chill tb is focused more on pvp while tds is survival 💀
@louieporsche1174
@louieporsche1174 10 ай бұрын
@@tomfooIeryz uhh so making a tower defense game is copying tb?
@BargNargLol
@BargNargLol 10 ай бұрын
@@louieporsche1174 lol
@neutralartre1525
@neutralartre1525 2 жыл бұрын
This series is amazing!! Pls keep this up GnomeCode!! your the one and onlying can know how to create tds games!😃😃
@GnomeCode
@GnomeCode 2 жыл бұрын
Thanks! Will do!
@cheeyew4932
@cheeyew4932 2 жыл бұрын
@@GnomeCode you are the best
@KarlisTaken
@KarlisTaken 2 жыл бұрын
​@@GnomeCode yo you are the best teacher I've ever seen, go like that people like you
@water_yt9627
@water_yt9627 2 жыл бұрын
nvm
@jupesjack8871
@jupesjack8871 Жыл бұрын
@@GnomeCode can you make a video showing us how to make the enemy waves great series btw
@OwlReviews
@OwlReviews Жыл бұрын
thanks I decided to restart this series becasue my health gui stopped working for base health
@carolreds7216
@carolreds7216 23 күн бұрын
me: clicks on the video gnomecode: hello my fellow gnomes the screen behind him: AHHHHHH HELP ITS WW3 BEHIND ME HEEELPLPPP
@b_forbunnyyt1283
@b_forbunnyyt1283 2 жыл бұрын
A slight problem with this series; any enemy with =
@connorblox2244
@connorblox2244 2 жыл бұрын
add more waypoints
@b_forbunnyyt1283
@b_forbunnyyt1283 2 жыл бұрын
@@connorblox2244 okay, thanks I’ll try that
@KarlisTaken
@KarlisTaken 2 жыл бұрын
@@connorblox2244 yo my man just add waypoints and name them 13 14 15 16 17 18 19 20 DUDE SCRIPT IS GOING LIKE 1 +1 =2 +1 get it? just add waypoints and name them
@DustedMain
@DustedMain 2 жыл бұрын
spend 3-5 hours duplicating moving and naming new waypoints
@oscoolerreborn
@oscoolerreborn 2 жыл бұрын
alright I spent ages trying to figure this out by myself. so basically, movetofinished can return false or true, true if it successfully makes it to the point and false if it does not. So what I did was ``` local function MoveToFinished(humanoid,position) local Timeout = true local event = humanoid.MoveToFinished:Connect(function(successful) if not successful then humanoid:MoveTo(position) return end if successful then Timeout=false end end) repeat task.wait(.25) until Timeout==false event:Disconnect() task.wait(.1) return end ``` we are not done yet. now that code above gooes outside any code, so just put it on the first line basically. and then you know wher eyou put humanoid.movetofinished:Wait() replace it with ``` MoveToFinished( *humanoid* , *waypoints* [tostring(index)].Position) ``` you see the humanoid after the first bracket? you need to say local humanoid = mob.Humanoid -- or wherever your humanoid is see the waypoints?. yeah you need to copy the code from the loop as shown in the video :D np i went into detail because i don't know if you know scripting much sry im spaming this to anyone tht needs help
@bartoszpudelski5239
@bartoszpudelski5239 2 жыл бұрын
I have a few suggestions for after you add in the towers: you can add in a summoner enemy ( summons other enemies ) a big boss enemy, a boss health bar ( for the big boss enemy ), stuns ( for the big boss enemy and maybe some other enemies ), a wave counter ( shows what wave you're on and how many waves there are ), shield enemies ( enemies that carry a shield that can be broken, which makes them faster ) and enemies that spawn in one enemy ( maybe a few enemies ) after death. Please add in at least one of my suggestions if you see this.
@user-ir8fn8mm8l
@user-ir8fn8mm8l 2 жыл бұрын
Very good idea
@funnigher251
@funnigher251 2 жыл бұрын
Great ideas!!
@caylixplays2223
@caylixplays2223 2 жыл бұрын
i love it
@aboveaverage2137
@aboveaverage2137 2 жыл бұрын
maybe also some enemy properties such as: hidden (only specific towers and upgraded ones can target them), metallic (same as with hidden but the towers can target the enemy, they can't deal any damage to it), enemies with defence (get damaged less)
@Jaden-CD
@Jaden-CD 2 жыл бұрын
@gnome code
@KeithJrBroReal
@KeithJrBroReal Жыл бұрын
Hey gnomecode Im having issues adding the animations I did exactly the sane script you did but the animations werent working do you have a possible fix for it?
@hasanasan468
@hasanasan468 14 күн бұрын
For animations, put this command inside the Mob and add an ''Animation'' inside the command. Then write the code: local char = script.Parent local hum = char:WaitForChild("Humanoid") local animation = hum:LoadAnimation(script.Animation) if char ~= nil then animation:Play() end
@Playgui31YT
@Playgui31YT 8 ай бұрын
I got an problem on the collision part, the zombies are still running onto the mechs but are NOT running into themselfs so that makes the text "Zombie" Like more outlined. Please help.
@BRO-ij9uz
@BRO-ij9uz 6 ай бұрын
If you are having trouble with the collision because of the update this is the script: for i, object in ipairs(newMob:GetDescendants()) do if object:IsA("BasePart") then object.CollisionGroup = "Mob" end end
@BloonPlays
@BloonPlays 6 ай бұрын
TYSM
@foxyonpaws1
@foxyonpaws1 5 ай бұрын
BRO TYSM I WAS LITERALLY ABOUT TO BLOW MY HEAD OFF
@justinbound.4663
@justinbound.4663 5 ай бұрын
It doesnt work :(
@VictorTheScripter
@VictorTheScripter 5 ай бұрын
where do i input it
@YaBoyEv
@YaBoyEv 5 ай бұрын
@@BloonPlayshey where do u input?
@Natical_Plays
@Natical_Plays 10 ай бұрын
For anyone wondering why their animations aren't working even after changing the ID, it might be because you are in the client and not the server, so if you click "Play" instead of "Run" then the animations will load since you are in the game.
@liame3441
@liame3441 10 ай бұрын
It still is not working for me
@Natical_Plays
@Natical_Plays 10 ай бұрын
@@liame3441 If you are making the game in a group, also make sure to publish the animation ID to the group your are using for the game instead of "Me". Wishing you luck!
@zomzilla420
@zomzilla420 10 ай бұрын
it did not work
@Natical_Plays
@Natical_Plays 10 ай бұрын
It was just a suggestion, will not always work, wish you luck!@@zomzilla420
@SkyIslandEaston
@SkyIslandEaston 10 ай бұрын
What is infinite yeikd
@guisakatuk5315
@guisakatuk5315 10 ай бұрын
gnome I love you youre the best youtuber to script and im a dev bacause of you
@BryAstronaut
@BryAstronaut 2 жыл бұрын
Do a tutorial on how to make towers to damage zombies, then to make the base have health and be damaged, then to make some zombies stun the towers.
@lukiValent
@lukiValent 2 жыл бұрын
Towers attack enemies is easy, there are kits that are useful. I rescripred that tower script to make it able to shoot bullets at enemies. The kit also contains a damage base system but it sucks
@quandovocefazerumvideovoud265
@quandovocefazerumvideovoud265 2 жыл бұрын
up
@quandovocefazerumvideovoud265
@quandovocefazerumvideovoud265 2 жыл бұрын
@@lukiValent the config is different
@lucianosilvapino5468
@lucianosilvapino5468 2 жыл бұрын
I have a problem, when I'm in the part of animations (17:20) I do exactly the script in this part, but the problem is the mech is the only one enemy who has the walk animation, and the other don't have it, someone help plz.
@KarZeCompany
@KarZeCompany 2 жыл бұрын
Sorry, I'm a bit late. I had the same problem. You need to open the Animation Editor plugin, click on any mob that does not have the animation and click "Publish to Roblox" (see 1:45). Then you need to copy the ID of the animation you just published. Lastly you need to replace the AnimationId of the "Walk" animation inside the "Animations" folder in the mob model with the ID you just copied. I hope it helped!
@badboysplay1463
@badboysplay1463 Жыл бұрын
same lol
@Dont_ask_bro
@Dont_ask_bro Жыл бұрын
im having trouble with the collision groups in the new update it wont let me check default at all on mob and player
@YungNoahX
@YungNoahX 2 ай бұрын
For anyone who is experiencing an issue where you have a longer map and your Mobs are skipping some turns/waypoints, it's because your MoveTo() function times out after 8 seconds. To fix this, simply add more waypoints along the path, even if they're not at turns, it will still work. Hope this helps!
@lgumas403
@lgumas403 2 ай бұрын
Thank's dude!!
@friyy
@friyy 2 ай бұрын
Exactly the issue I was facing, thank you!!
@okayultra
@okayultra 2 ай бұрын
Alternate solution: for checkpoint = 1, #checkpoints:GetChildren() do repeat guy:MoveTo(checkpoints[checkpoint].Position) local reached = guy.MoveToFinished:Wait() until reached end
@cashtastrophe
@cashtastrophe Жыл бұрын
🛑 IMPORTANT 🛑 As of 2023 this script dose not work, (or if collisions are not working) here are the changes: Mob Module Script: replace PhyscicsService:SetPartCollisionGroup(object, "Mob") to object.CollisionGroup = "Mob" OnPlayerAdded Script: replace PhyscicsService:SetPartCollisionGroup(object, "Player") to object.CollisionGroup = "Player" Edit: If your mobs or towers have meshed and parts add this to the checks: Instead of “if objects:IsA(“BasePart”)” do “if objects:IsA(“BasePart”) or object:IsA(“Mesh”) or object :IsA(“Part”) EDIT2: Fixed syntax errors you may have experienced dude to updated Roblox code! (Mom I am famous...)
@heliumhater7
@heliumhater7 Жыл бұрын
thanks
@angrybirdsepic3698
@angrybirdsepic3698 Жыл бұрын
Da best
@LexFuter
@LexFuter Жыл бұрын
Tysm!
@fivr.
@fivr. Жыл бұрын
thanks g
@Polish-Phoenician
@Polish-Phoenician Жыл бұрын
godly comment
@amsethgre1515
@amsethgre1515 2 жыл бұрын
a mistake you can make is forgeting to get the id of the walk animation
@aok737
@aok737 8 ай бұрын
I have a problem. So, when I loaded in, I couldn't collide with zombies, which is good. However, I could collide with Mech and also the zombies. The collision groups are configured as in the video. Help needed.
@Bread_ly
@Bread_ly 10 ай бұрын
How do I do the collision groups mine just falls through the map
@r4nd0mzzz
@r4nd0mzzz 2 жыл бұрын
Idk how but for me, I used your zombie model but the animation doesn't work for it. Any ideas as to how to fix it?
@IamTheDawgRBLX
@IamTheDawgRBLX 2 жыл бұрын
learn how to code
@r4nd0mzzz
@r4nd0mzzz 2 жыл бұрын
@@IamTheDawgRBLX WOAH SO INTUITIVE
@DaKingBread
@DaKingBread Жыл бұрын
@@r4nd0mzzz You have to replace the id of the animation
@Bot-iv7io
@Bot-iv7io 11 ай бұрын
@@DaKingBread when I do that it doesnt work and just breaks the mech animation
@Bot-iv7io
@Bot-iv7io 11 ай бұрын
@@DaKingBread nevermind the problem was I was running it instead of playing it tysm
@zepobrasilvemhexa
@zepobrasilvemhexa Жыл бұрын
There is a bug that slow mobs skip the waypoints before touching it, here's a fix: just replace the mob.move function with this script function mob.Move(mob, map) local humanoid = mob:WaitForChild("Humanoid") local waypoints = map.Waypoints for waypoint=1, #waypoints:GetChildren() do repeat humanoid:MoveTo(waypoints[waypoint].Position) until humanoid.MoveToFinished:Wait() end mob:Destroy() end
@decembings
@decembings Жыл бұрын
After i done this, On the main script line 1, its saying "Module code did not return exactly one value" Do you know a fix?
@ChaosUnified
@ChaosUnified Жыл бұрын
Thanks a lot!
@gpro1773
@gpro1773 Жыл бұрын
Thanks!
@placeholerwav
@placeholerwav 11 ай бұрын
thanks, youre a life saver!
@antonshevtsov692
@antonshevtsov692 9 ай бұрын
it does not come out to replace their mobs get up in the place where they put it and why is that?
@Bazzar_Studios
@Bazzar_Studios 5 ай бұрын
If your using a custom character how would you make it so when it moves the animation plays?
@FlyinFinnMotorsportVideos
@FlyinFinnMotorsportVideos 6 ай бұрын
one of my mobs says Requested mob does not exist :(
@Polipisd
@Polipisd 2 жыл бұрын
Uh hi excuse me i have a problem concerning the line of code: local walkAnimation = animationsFolder:WaitForChild("Walk") even after i changed it from object to animations folder it still says there is an infinite yield possible.
@SilverFox725
@SilverFox725 2 жыл бұрын
try joining his discord server theres moderators and people who cna help
@griffinshorts785
@griffinshorts785 2 жыл бұрын
You might not want the quotes around walk But that’s just a guess
@Gumbibull
@Gumbibull 2 жыл бұрын
You need to put walk animation into a custom one to fix it and it fixed it i also had it too just do a custom animation
@hocki-klocki_chan2137
@hocki-klocki_chan2137 4 ай бұрын
same issue please someone help
@hocki-klocki_chan2137
@hocki-klocki_chan2137 4 ай бұрын
@@Gumbibullthis sounds like it would help but i dont understand please explain more :)
@aydentalianacutajar2464
@aydentalianacutajar2464 Жыл бұрын
Hey man! Great video! But I'm having trouble with slow enemies, as they tend to go over the path after moving correctly for a short distance. Anything below 7 walk speed ain't working. Please help me.
@ethansexton
@ethansexton Жыл бұрын
same idk how to fix it
@pumpkin7906
@pumpkin7906 Жыл бұрын
I don't even know how to make enemies slow or fast
@pulaturalov5176
@pulaturalov5176 Жыл бұрын
Try this for waypoint=1, #waypoints:GetChildren() do repeat humanoid:MoveTo(waypoints[waypoint].Position) until humanoid.MoveToFinished:Wait() end
@justunknownuser534
@justunknownuser534 Жыл бұрын
@@pulaturalov5176 i cant maked animate zombies can you help me please
@pulaturalov5176
@pulaturalov5176 Жыл бұрын
@@justunknownuser534 Of course. Can you tell me more about the problem? On which script is the error?
@WraifGaming720
@WraifGaming720 4 ай бұрын
I found out another way to introduce enemies on specific waves if you're using "+ wave" instead of "* wave", using negatives. For example if you type -1 into the value, it will spawn that enemy on wave 2 because it will result in 0 on the first wave.
@N4M3_Real
@N4M3_Real Ай бұрын
What if I want all my mobs to be zombies? Just of different types I'm trying to adjust speed and stuff for a faster one because I replaced mech, noob etc
@benliontv4357
@benliontv4357 4 ай бұрын
My animations are not working, the folders are in the mobs, they have the id in, the code is correct, but it doesnt work (the animation is called "Walk" too)
@That-One-Dude
@That-One-Dude 4 ай бұрын
Same thing happend with me you need to play it not in viewing
@lgumas403
@lgumas403 3 ай бұрын
@@That-One-Dude i recomend you to use a script on the toolboox called "playanimation"
@game_explorer13
@game_explorer13 2 ай бұрын
​@@That-One-Dude What do you mean with that?
@raybubbly8462
@raybubbly8462 2 жыл бұрын
On line eight in the OnPlayerAdded script, I keep getting a W020 error (line of code shown here: 8:58 ). This also happens with line 30 in the Mob script (line of code shown here: 6:37 ). I've made sure my script is exactly the same as shown in the video, I've tried looking up what the error W020 means, but i cant find anything. Can someone please help me with this? Thanks.
@qlzzcl
@qlzzcl 2 жыл бұрын
i didnt get any errors but it isnt even working xD
@noob-xu3ws
@noob-xu3ws 2 жыл бұрын
same XD
@firestorme3709
@firestorme3709 2 жыл бұрын
@@noob-xu3ws hey guy make sure to save the game and make the player r6 or r16 in the avatar sttetings :)
@themarsalien
@themarsalien 2 жыл бұрын
@@firestorme3709 big brain move
@samuraiyt4453
@samuraiyt4453 2 жыл бұрын
@@firestorme3709 THANKS SOOOO MUCH!!!!
Creating Towers + Killing Mobs  - Tower Defense Tutorial #4
16:22
Wave Based Attacks - Tower Defense Tutorial #2
20:22
GnomeCode
Рет қаралды 753 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 105 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 61 МЛН
Animated Tower Attacks  - Tower Defense Tutorial #7
28:44
GnomeCode
Рет қаралды 237 М.
New Tower Types  - Tower Defense Tutorial #9
25:29
GnomeCode
Рет қаралды 165 М.
What Makes Tower Defence Games Good?
21:31
RealityEscape
Рет қаралды 1,2 МЛН
I Played Every Roblox Tower Defense Game
27:01
propellars
Рет қаралды 707 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 3,7 МЛН
Building Better Crafting Systems
18:24
Adam Millard - The Architect of Games
Рет қаралды 793 М.
We Built the Internet in Minecraft
25:18
Branzy
Рет қаралды 2,3 МЛН
I Made My Own Toilet Tower Defense Game | ROBLOX
8:29
JOHN ROBLOX
Рет қаралды 356 М.