New Mob Types + Animations - Tower Defense Tutorial #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025

ความคิดเห็น • 5K

  • @GnomeCode
    @GnomeCode  3 ปีที่แล้ว +417

    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 3 ปีที่แล้ว +7

      It work thx 😎😎😎

    • @GamingwithPaul.
      @GamingwithPaul. 3 ปีที่แล้ว +5

      how do you make attack animations from the enemies like stunning properties?

    • @DustedMain
      @DustedMain 3 ปีที่แล้ว +5

      I almost had a heart attack of relief when that worked

    • @xophroblox8199
      @xophroblox8199 3 ปีที่แล้ว +14

      Thanks But I cant get the animations working :/

    • @gamingwithjosh6284
      @gamingwithjosh6284 3 ปีที่แล้ว +5

      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!

  • @MableyLisa
    @MableyLisa 2 ปีที่แล้ว +69

    Thanks! These tutorials are super helpful and clear.

  • @PineBloxx
    @PineBloxx 3 ปีที่แล้ว +124

    This series keeps getting better as it goes along! Keep this up Gnome! It’s Amazing ⭐️⭐️👍

    • @BirdyKongy
      @BirdyKongy 3 ปีที่แล้ว +1

      agreeed the best i ahd seen ngl lol

    • @KarlisTaken
      @KarlisTaken 3 ปีที่แล้ว +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 ปีที่แล้ว

      I very agree with that answer

  • @FrostialSamTT
    @FrostialSamTT ปีที่แล้ว +417

    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 ปีที่แล้ว +7

      thank you

    • @Geehwbbwbevwvevrvrbfh7171
      @Geehwbbwbevwvevrvrbfh7171 ปีที่แล้ว +6

      THANK YOU OMG I'VE BEEN FIXING THIS AND NOW YOU? YOU FIXED IT YESSS GO FUCKIN

    • @themajoristic1
      @themajoristic1 ปีที่แล้ว +5

      Ah i appreciate it dude

    • @OnePunchEnjoyer
      @OnePunchEnjoyer ปีที่แล้ว +20

      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 ปีที่แล้ว

      thank you

  • @BaselessConfusion
    @BaselessConfusion วันที่ผ่านมา +1

    due to new update with the collision groups there is now a property, just select every piece then set it to the desired physics group, and for the player a much simpler script can be put inside starter character scripts:
    local char = script.Parent
    for i, object in ipairs(char:GetDescendants()) do
    if object:IsA("BasePart") then
    object.CollisionGroup = "Player"
    end
    end

    • @fleppydoesthings
      @fleppydoesthings 21 ชั่วโมงที่ผ่านมา

      THANK U SO MUCHHHHHH

  • @4meer68
    @4meer68 2 ปีที่แล้ว +15

    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 10 หลายเดือนก่อน

      he deserves his 100k playbutton

    • @TheDevOfScript
      @TheDevOfScript 7 หลายเดือนก่อน

      3Q play button 😂😊

  • @wexzy4037
    @wexzy4037 3 ปีที่แล้ว +14

    This Is The Best Tower Defense Tutorial i Have Ever Seen You Earned My Sub Keep Up With The God Series

    • @GnomeCode
      @GnomeCode  3 ปีที่แล้ว +4

      Thanks so much, I really appreciate the support!

    • @wexzy4037
      @wexzy4037 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

      @@wexzy4037 the tutorial said to disable collisions to the mobs in the collision groups section of this video

    • @wexzy4037
      @wexzy4037 3 ปีที่แล้ว

      @@ChirpFPV ik and i did that

    • @ChirpFPV
      @ChirpFPV 3 ปีที่แล้ว

      @@wexzy4037 so then your player has no collision to the mobs

  • @funnyquarantine2858
    @funnyquarantine2858 2 ปีที่แล้ว +22

    If you want to alternate between enemies:
    for i = 1, (number) do
    mob.Spawn(type1, 1, map)
    mob.Spawn(type2, 1, map)
    end

    • @WoolyBliss
      @WoolyBliss 2 ปีที่แล้ว

      whats alternate between enemies?

    • @roboticgames2989
      @roboticgames2989 ปีที่แล้ว +2

      @@WoolyBliss like one zombie 1 mech 1 zombie 1 mech one zombie 1 mech

  • @Equinox_Studio_Official
    @Equinox_Studio_Official วันที่ผ่านมา +1

    Can someone PLEASE help me with this in the animation script it says attempt to index nil with Play on the walkTrack:Play() line
    The timestamp for it is 16:06
    If you know why please help
    Thank you

  • @avnethead
    @avnethead 3 ปีที่แล้ว +17

    At this point i dont even watch the tutorials to learn about scripting, I watch them since i like gnomecodes voice

    • @GnomeCode
      @GnomeCode  3 ปีที่แล้ว +11

      GnomeCode ASMR lol

    • @jimmygaming3101
      @jimmygaming3101 3 ปีที่แล้ว +1

      lol

    • @I_Q534
      @I_Q534 3 ปีที่แล้ว +1

      Bruh im dying of cringe

    • @cratson8872
      @cratson8872 6 วันที่ผ่านมา

      @@GnomeCode sorry for wasting your time, but what if i add my models? Like how do i put animation?

    • @xdlegend8914
      @xdlegend8914 2 วันที่ผ่านมา

      @@cratson8872 so, add a configuration folder and name it “Animations”. Then, add an animation and put the animation ID of your choice and name the animation to “Walk” :)

  • @TheGoofyAvenger
    @TheGoofyAvenger ปีที่แล้ว +25

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว

      @@WhyIsSveenyTaken did u unanchor it?

    • @eggguyrblx9319
      @eggguyrblx9319 10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน

      @@eggguyrblx9319 not sure if you arleady found out but just remove the "* wave" and set it to the number you want

    • @jollyed
      @jollyed 8 หลายเดือนก่อน

      tysm this really helped

  • @fastkiwi9646
    @fastkiwi9646 2 ปีที่แล้ว +12

    Love how you describe every function well, along with the purpose. Thank you for teaching me GnomeCode ! :]

    • @jezzthedevofficial
      @jezzthedevofficial 2 ปีที่แล้ว +1

      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 2 ปีที่แล้ว +1

      @@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 2 ปีที่แล้ว

      @@simvoid4347 yep lol

  • @khrukhy_dev6932
    @khrukhy_dev6932 ปีที่แล้ว +21

    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

    • @EliAnimation-p3g
      @EliAnimation-p3g ปีที่แล้ว +1

      bro u saved me

    • @maemgi1312
      @maemgi1312 ปีที่แล้ว +1

      Thank you man, You're a life saver

    • @node5335
      @node5335 ปีที่แล้ว +1

      OMG TYSM I LOVE YOU

    • @Dragondax29
      @Dragondax29 ปีที่แล้ว +1

      Bros lifesaving without trying😅

    • @gokilcool5298
      @gokilcool5298 ปีที่แล้ว +1

      Tysm for helping me with that!!!

  • @idontlikeair2044
    @idontlikeair2044 ปีที่แล้ว +12

    Great video! I just have a problem with the animations, when I run the script it says, “unable to create an Instance of type “Animator” is there any way for me to fix this?

    • @ZxckWastingTime
      @ZxckWastingTime ปีที่แล้ว +1

      not enough money for him to give a shit lmfao

    • @ghostsontopp
      @ghostsontopp 8 หลายเดือนก่อน

      make the animation type movement

    • @Someoneyes-y7l
      @Someoneyes-y7l หลายเดือนก่อน

      could you provide the script

  • @allense3915
    @allense3915 3 ปีที่แล้ว +11

    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)

  • @voidplays9613
    @voidplays9613 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

      Where I off the properties

    • @VRonYoutube
      @VRonYoutube ปีที่แล้ว +1

      can you help me?

    • @voidplays9613
      @voidplays9613 ปีที่แล้ว +1

      Ye I can help

    • @voidplays9613
      @voidplays9613 ปีที่แล้ว +1

      Go in the comments and do what gnomecode commented that should work

    • @VRonYoutube
      @VRonYoutube ปีที่แล้ว +1

      @@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.

  • @NagumoSamaurai
    @NagumoSamaurai 3 ปีที่แล้ว +20

    I've been wanting to make a TD game for ages, this has allowed me to achieve my goals!

    • @Grinderjosh
      @Grinderjosh ปีที่แล้ว

      what game u made can u help me?

    • @Mr.Catman-HelpME
      @Mr.Catman-HelpME 4 หลายเดือนก่อน

      same here :)

  • @Skyme64
    @Skyme64 11 หลายเดือนก่อน +3

    this series has helped me out so much! thanks so much for making it

  • @Nachoegg
    @Nachoegg 3 ปีที่แล้ว +8

    love how he also teaches us how to fix problems

    • @Dexhammy
      @Dexhammy 3 ปีที่แล้ว +1

      ... yes and no

    • @minigunner4045
      @minigunner4045 3 ปีที่แล้ว +1

      @@Dexhammy Yesn't

  • @thebuggser2752
    @thebuggser2752 3 หลายเดือนก่อน +1

    What a great series! Not for the faint of heart; but very clearly and logically presented. A++++

  • @TabbyDev
    @TabbyDev 3 ปีที่แล้ว +7

    Great series, works, can't wait till the tower system is implemented!

  • @Unlucky-9172
    @Unlucky-9172 3 ปีที่แล้ว +8

    I might actually try this because its so satisfying seeing things come together

  • @placeholerwav
    @placeholerwav 2 ปีที่แล้ว +9

    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- 2 ปีที่แล้ว

      do u mean mob?

    • @SukunaIsCold
      @SukunaIsCold 2 ปีที่แล้ว

      @@tableduck- same thing

    • @Hex_agz
      @Hex_agz 7 หลายเดือนก่อน

      @@SukunaIsCold nope

  • @angomango173
    @angomango173 ปีที่แล้ว +6

    that 'oooh heres teddy' at 20:12 got me 😭😭

  • @bartoszpudelski5239
    @bartoszpudelski5239 3 ปีที่แล้ว +45

    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.

    • @Aslam1Dev
      @Aslam1Dev 3 ปีที่แล้ว

      Very good idea

    • @funnigher251
      @funnigher251 3 ปีที่แล้ว

      Great ideas!!

    • @caylixplays2223
      @caylixplays2223 3 ปีที่แล้ว

      i love it

    • @aboveaverage2137
      @aboveaverage2137 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @gnome code

  • @scriptintoplaces2382
    @scriptintoplaces2382 3 ปีที่แล้ว +17

    this series is amazing! i cannot wait until part 4.

  • @daryljoysarabosing297
    @daryljoysarabosing297 9 หลายเดือนก่อน +46

    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 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน +3

      @@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 9 หลายเดือนก่อน

      Not all heroes wear capes, unless you do wear a cape!

    • @NS_teah
      @NS_teah 9 หลายเดือนก่อน +1

      I just added more waypoints to fix it

    • @aybar2599
      @aybar2599 8 หลายเดือนก่อน

      thank u so much bro

  • @rivo_royale
    @rivo_royale 3 หลายเดือนก่อน +1

    This sires is amazing im about to be done with this episode im tryna make my own td game and also lean scripting one day this is definetly helping me thank you so much ur so much different from these others tutorial people ur voice, takng ur time, everything is amazing keep up the good work!!!!

  • @b_forbunnyyt1283
    @b_forbunnyyt1283 3 ปีที่แล้ว +37

    A slight problem with this series; any enemy with =

    • @connorblox2244
      @connorblox2244 3 ปีที่แล้ว +3

      add more waypoints

    • @b_forbunnyyt1283
      @b_forbunnyyt1283 3 ปีที่แล้ว

      @@connorblox2244 okay, thanks I’ll try that

    • @KarlisTaken
      @KarlisTaken 3 ปีที่แล้ว +1

      @@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 3 ปีที่แล้ว +2

      spend 3-5 hours duplicating moving and naming new waypoints

    • @oscoolerreborn
      @oscoolerreborn 3 ปีที่แล้ว +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

  • @forgeon9898
    @forgeon9898 2 ปีที่แล้ว +11

    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 2 ปีที่แล้ว

      You need to be 13+ to make a youtube account

    • @DaKingBread
      @DaKingBread 2 ปีที่แล้ว

      @@polyaro2504 Thats just you lmfao.
      I made mine at 10.
      I'm 13 now.

    • @HexDoesStuff
      @HexDoesStuff 2 ปีที่แล้ว +1

      @@polyaro2504 No one cares

    • @polyaro2504
      @polyaro2504 2 ปีที่แล้ว

      @@HexDoesStuff Dogs don't care they listen

  • @piperplayz-l8g
    @piperplayz-l8g ปีที่แล้ว +4

    nice tutorial! you motivated me into become a game developer. you earned yourself a new subscriber

  • @mayronmontoya
    @mayronmontoya 6 หลายเดือนก่อน +1

    thanks gnome code i also inproved my waves and it worked! thanks gnome code for the support!

  • @DustedMain
    @DustedMain 3 ปีที่แล้ว +6

    My friend really wanted me to make a tower defense and your tutorials are really helpful

  • @cyb3r._.
    @cyb3r._. ปีที่แล้ว +8

    @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?

    • @GigglingShark
      @GigglingShark ปีที่แล้ว

      just make your own enemies

    • @Rip_Among_sus
      @Rip_Among_sus 10 หลายเดือนก่อน

      i have same problem tho

    • @spotnjik
      @spotnjik 7 หลายเดือนก่อน

      i have same problem too

    • @ツMauro_BoludaYTツ
      @ツMauro_BoludaYTツ 6 หลายเดือนก่อน

      me too😭😭

    • @Hoverstruck
      @Hoverstruck 2 หลายเดือนก่อน +1

      I just made my own

  • @zepobrasilvemhexa
    @zepobrasilvemhexa ปีที่แล้ว +7

    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 ปีที่แล้ว

      thanks, youre a life saver!

    • @antonshevtsov692
      @antonshevtsov692 ปีที่แล้ว

      it does not come out to replace their mobs get up in the place where they put it and why is that?

  • @DevByBoba
    @DevByBoba 6 หลายเดือนก่อน +1

    Something I recommend when renaming scripts, say “script name”(can be anything) and then script/local script, it’s way easier to find in explorer

  • @theninjajayden7869
    @theninjajayden7869 3 ปีที่แล้ว +5

    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!

  • @gogogamedev
    @gogogamedev 3 ปีที่แล้ว +7

    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 3 ปีที่แล้ว +1

      Thanks! That fixed my script!

    • @sam-clashofclans1554
      @sam-clashofclans1554 3 ปีที่แล้ว

      Thank you

    • @BUG.Indonesia
      @BUG.Indonesia 2 ปีที่แล้ว

      thank you

    • @Wsgismylife
      @Wsgismylife ปีที่แล้ว +1

      How log do I put wait?

    • @neKtar12Ru
      @neKtar12Ru หลายเดือนก่อน

      If you can`t disable collision fpr a player even though you fpllowed all the rules of the script and there ate no errors,then simply copy this script and paste it into OnPlayersAdded (it worket for me)
      local Players = game:GetService("Players")
      local PhysicsService = game:GetService("PhysicsService")
      Players.PlayerAdded:Connect(function(player)
      player.CharacterAppearanceLoaded:Connect(function(character)
      for i, object in ipairs(character:GetDescendants()) do
      if object:IsA("BasePart") then
      object.CollisionGroup = "Player"
      end
      end
      end)
      end)

  • @dogegaminglivestreamchanne4696
    @dogegaminglivestreamchanne4696 2 ปีที่แล้ว +8

    15:31 just saving my spot also keep up the good work gnome :) 👍

  • @Cazaceyt
    @Cazaceyt หลายเดือนก่อน +2

    Can i add custom animations to the mobs like if i go to the toolbox and pick a model that has an animation could i transfer it to the rest of the mobs?

  • @erikwilliams1562
    @erikwilliams1562 ปีที่แล้ว +25

    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 11 หลายเดือนก่อน

      same! i really hope he is. get this comment to the top!

    • @squigglesz
      @squigglesz 10 หลายเดือนก่อน +1

      Your a good dad

    • @CosmoPlays-nk3wm
      @CosmoPlays-nk3wm 7 หลายเดือนก่อน +1

      the code still works check if he has written it properly

    • @Arabyc930
      @Arabyc930 5 หลายเดือนก่อน

      @@yuzy5896 he wont

    • @theduck7751
      @theduck7751 5 หลายเดือนก่อน

      GET THIS COMMENT TO TOP

  • @murganes3107
    @murganes3107 3 ปีที่แล้ว +12

    Thanks for the series it's really amazing, I love how you explain everything !!

  • @goatgameryt2059
    @goatgameryt2059 3 ปีที่แล้ว +6

    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 3 ปีที่แล้ว +1

      Nice! Hope you game does well

  • @Natical_Plays
    @Natical_Plays ปีที่แล้ว +22

    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 ปีที่แล้ว +1

      It still is not working for me

    • @Natical_Plays
      @Natical_Plays ปีที่แล้ว +1

      @@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 ปีที่แล้ว

      it did not work

    • @Natical_Plays
      @Natical_Plays ปีที่แล้ว

      It was just a suggestion, will not always work, wish you luck!@@zomzilla420

    • @SkyIslandEaston
      @SkyIslandEaston ปีที่แล้ว

      What is infinite yeikd

  • @Evan-mt4ie
    @Evan-mt4ie 9 หลายเดือนก่อน +3

    I might have donesomething wrong, but i had a problem with the animation so I added walkTrack:Looped = true right before the walkTrack:Play() and that fixed it for me!

  • @placeholerwav
    @placeholerwav ปีที่แล้ว +9

    if your animation doesnt work, make sure to add a " wait(x) " before spawning in your firstmob.

  • @cashtastrophe
    @cashtastrophe 2 ปีที่แล้ว +139

    🛑 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...)

  • @demdirtysox
    @demdirtysox 4 หลายเดือนก่อน +1

    i wanted my first roblox game to be a tower defense and your vid was right there

  • @Vandezza
    @Vandezza 2 ปีที่แล้ว +8

    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 ปีที่แล้ว

      ​@@popaccelerator-ox2mgreply to me if ur having mob collision troubles

    • @VictorTheScripter
      @VictorTheScripter ปีที่แล้ว

      @@iam100percentaurl im having trouble

    • @SqrlCraft
      @SqrlCraft 6 หลายเดือนก่อน

      do you know how to make the animations for custom rigs?

  • @raybubbly8462
    @raybubbly8462 3 ปีที่แล้ว +9

    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 3 ปีที่แล้ว +2

      i didnt get any errors but it isnt even working xD

    • @noob-xu3ws
      @noob-xu3ws 3 ปีที่แล้ว

      same XD

    • @firestorme3709
      @firestorme3709 3 ปีที่แล้ว +3

      @@noob-xu3ws hey guy make sure to save the game and make the player r6 or r16 in the avatar sttetings :)

    • @themarsalien
      @themarsalien 3 ปีที่แล้ว

      @@firestorme3709 big brain move

    • @samuraiyt4453
      @samuraiyt4453 3 ปีที่แล้ว

      @@firestorme3709 THANKS SOOOO MUCH!!!!

  • @benliontv4357
    @benliontv4357 ปีที่แล้ว +6

    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)

    • @XenDev-XD
      @XenDev-XD ปีที่แล้ว +2

      Same thing happend with me you need to play it not in viewing

    • @lgumas403
      @lgumas403 11 หลายเดือนก่อน

      @@XenDev-XD i recomend you to use a script on the toolboox called "playanimation"

    • @game_explorer13
      @game_explorer13 10 หลายเดือนก่อน

      ​@@XenDev-XD What do you mean with that?

    • @giztillian9183
      @giztillian9183 2 หลายเดือนก่อน +1

      same exact problem. I think the issue is when this was uploaded he had his stuff inside a "configuration folder" but the mobs he provided us have the animations inside a configuration

    • @benliontv4357
      @benliontv4357 2 หลายเดือนก่อน

      back here after i completed the tutorial, the model needs to be unanchored othereise its just not gonna move, it needs to be in an animation thats inside that config folder

  • @Helixisgreat
    @Helixisgreat 4 หลายเดือนก่อน +2

    In the current update if you just add the mobs into the group by selecting them and pressing the big plus then it will work just fine

    • @Valentinos_tounge
      @Valentinos_tounge 3 หลายเดือนก่อน

      thank you so much, I'm on episode six and you've just saved my game

    • @Helixisgreat
      @Helixisgreat 3 หลายเดือนก่อน

      @@Valentinos_tounge Np Just looking out for fellow devs

  • @astatyn
    @astatyn 3 ปีที่แล้ว +6

    This is EXTREMELY helpful to me as I keep making Tower Defense games with kits and free models.

    • @WoolyBliss
      @WoolyBliss 2 ปีที่แล้ว +1

      same

    • @Grinderjosh
      @Grinderjosh ปีที่แล้ว

      hey wanna work together? i wanna make TH-camr Tower defense simulator

  • @Alpha_Arcade
    @Alpha_Arcade 3 ปีที่แล้ว +7

    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 7 หลายเดือนก่อน

      I think I have the same problem, I don't know.

    • @YBU152
      @YBU152 6 หลายเดือนก่อน

      @@thealtaccount9982 same for me

    • @lynner175
      @lynner175 5 หลายเดือนก่อน

      @@YBU152 maybe misspelling somewhere?

    • @YBU152
      @YBU152 5 หลายเดือนก่อน

      @@lynner175 i checked, no misspelling

    • @lynner175
      @lynner175 5 หลายเดือนก่อน

      @@YBU152 then idk

  • @flamenice7386
    @flamenice7386 7 หลายเดือนก่อน +7

    Lol it took me 10 minutes to realize the animations only work when you actually play the game, and they dont work when you run it

    • @flamenice7386
      @flamenice7386 7 หลายเดือนก่อน

      I aslo Had To Delete the Zombie And Teddy Because there animations werent playing properly

    • @W0keCheese
      @W0keCheese 6 หลายเดือนก่อน

      @@flamenice7386 that's because if you put a R6 animation into for example a R15 teddy bear, its not going to work unless you put a R15 animation, and the same for R6 Models

    • @bloodthirsttt
      @bloodthirsttt 2 หลายเดือนก่อน

      @flamenice7386 tysm for mentioning u have to play the game, i was super confused why mine wasn’t working so tysm

  • @Bleechvr
    @Bleechvr 7 หลายเดือนก่อน +2

    If y’all’s collision groups aren’t working, you have to go into collision groups, select all of your mobs in explorer, and click on the plus button to fix the mobs colliding. Hope this helps

    • @leeumyupdrip2879
      @leeumyupdrip2879 7 หลายเดือนก่อน +1

      Thank you, the only person to say this.

    • @Bleechvr
      @Bleechvr 7 หลายเดือนก่อน +1

      @@leeumyupdrip2879 you’re welcome 👍

    • @godtype9706
      @godtype9706 7 หลายเดือนก่อน +1

      Huh?? the little plus that adds stuff? Then do what after you click it?

    • @Bleechvr
      @Bleechvr 7 หลายเดือนก่อน +1

      @@godtype9706 it should already be on your collision group, but you have to select the models, select the collision group, and click the plus. And I should be in the collision group

    • @Zuzuga1
      @Zuzuga1 5 หลายเดือนก่อน +1

      why havent anyone else mentioned it, thanks dude!!

  • @lucianosilvapino5468
    @lucianosilvapino5468 3 ปีที่แล้ว +7

    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 ปีที่แล้ว +6

      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 2 ปีที่แล้ว +2

      same lol

    • @qu1nchik
      @qu1nchik 5 หลายเดือนก่อน

      ​@@KarZeCompanybro can you help me i tried to do this with teddy and he dont have animations!idk what it

  • @callmecozmic
    @callmecozmic 10 หลายเดือนก่อน +4

    My animations don't work what so ever, the animation priority is movement, I've been running my game in play, my animations are archivable, and I've also tried looping the animation. Nothing seems to be working.

    • @emriver150
      @emriver150 10 หลายเดือนก่อน

      same

  • @tonklachannel6181
    @tonklachannel6181 3 ปีที่แล้ว +7

    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 3 ปีที่แล้ว +3

      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 2 ปีที่แล้ว

      @@tomfooIeryz nah bro chill tb is focused more on pvp while tds is survival 💀

    • @louieporsche1174
      @louieporsche1174 ปีที่แล้ว

      @@tomfooIeryz uhh so making a tower defense game is copying tb?

    • @BargNargLol
      @BargNargLol ปีที่แล้ว

      @@louieporsche1174 lol

    • @rudequartz
      @rudequartz 7 หลายเดือนก่อน

      @@tomfooIeryz Thats just a common idea in any tower defense game

  • @CharlieThatPuppy
    @CharlieThatPuppy หลายเดือนก่อน +2

    11:07 Start of animations

  • @Wazzalish
    @Wazzalish 3 ปีที่แล้ว +8

    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 3 ปีที่แล้ว

      Snipers would be interesting since it would need cliffs to be placed

    • @tomfooIeryz
      @tomfooIeryz 3 ปีที่แล้ว

      not exactly, look at tbz with their sniper, and also hunter from tds is pretty much just a sniper on the ground

    • @lukiValent
      @lukiValent 3 ปีที่แล้ว

      @@tomfooIeryz that's of course super easy to make, just grab a basic tower and set it's fire rate to slow

    • @gavinmcgowan1854
      @gavinmcgowan1854 3 ปีที่แล้ว +1

      @@lukiValent is it?? animations, making the sniper, and other stuff

  • @Polipisd
    @Polipisd 3 ปีที่แล้ว +7

    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.

    • @WoolyBliss
      @WoolyBliss 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 11 หลายเดือนก่อน

      same issue please someone help

    • @hocki-klocki_chan2137
      @hocki-klocki_chan2137 11 หลายเดือนก่อน

      @@Gumbibullthis sounds like it would help but i dont understand please explain more :)

  • @r4nd0mzzz
    @r4nd0mzzz 3 ปีที่แล้ว +6

    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 ปีที่แล้ว +3

      @@IamTheDawgRBLX WOAH SO INTUITIVE

    • @DaKingBread
      @DaKingBread 2 ปีที่แล้ว

      @@r4nd0mzzz You have to replace the id of the animation

    • @Bot-iv7io
      @Bot-iv7io ปีที่แล้ว

      @@DaKingBread when I do that it doesnt work and just breaks the mech animation

    • @Bot-iv7io
      @Bot-iv7io ปีที่แล้ว

      @@DaKingBread nevermind the problem was I was running it instead of playing it tysm

  • @R3df0X526
    @R3df0X526 2 หลายเดือนก่อน +2

    GUYS IF UR ANIMATION DOES NOT WORK AND THERE IS NO ERROR THIS MIGHT BE THE PROBLEM:
    you cannot just run the game you have to actually play it, this is because the script is in starter player and if u run it their is no player.
    IK this seems simple but it took me like 30 mins to figure this out I hope this helped u

    • @RedBanditVR
      @RedBanditVR 25 วันที่ผ่านมา

      i had to learn that the hard way😭

  • @that1gamerlad98
    @that1gamerlad98 3 ปีที่แล้ว +40

    Add people from your Discord as enemies, it would be fun to see some people like Richard running around XD

    • @__tani
      @__tani 3 ปีที่แล้ว +7

      Bread enemy👹

    • @hugoalt4868
      @hugoalt4868 3 ปีที่แล้ว +5

      I would love to see an imposter gnome one was well

    • @trhrichard
      @trhrichard 3 ปีที่แล้ว +4

      Me running around?

    • @aqiptesfaye
      @aqiptesfaye 3 ปีที่แล้ว +2

      ah yes, add me >:D

    • @pedror1439
      @pedror1439 3 ปีที่แล้ว +2

      pr o

  • @vPedro_YT
    @vPedro_YT ปีที่แล้ว +7

    For anyone that want to do custom waves here the code
    The number 3 is the last wave
    for wave=1, 3 do
    If wave == 1 then
    mob.Spawn("Zombie", 2, map)
    End
    If wave == 2 then
    mob.Spawn("Zombie", 9, map)
    End
    If wave == 3 then
    mob.Spawn("Zombie", 9, map)
    mob.Spawn("Mech", 4, map)
    End
    repeat
    Task.wait(1)
    Until #map.Mobs:GetChildren() == 0
    Task.wait (5) -- the intermission time to next wave
    End
    Remember I dont put the prints in there

    • @Feretaryball5746
      @Feretaryball5746 ปีที่แล้ว

      doesnt work

    • @vPedro_YT
      @vPedro_YT ปีที่แล้ว

      Sorry, I forgot to put the )

    • @vPedro_YT
      @vPedro_YT ปีที่แล้ว

      Fixed now try it.

    • @MonkeyTDXLover
      @MonkeyTDXLover ปีที่แล้ว

      @@vPedro_YT how can i collide That the zombie wont touch eachother

    • @xthunder9281
      @xthunder9281 ปีที่แล้ว

      thank you🙏

  • @MimickingBlade
    @MimickingBlade ปีที่แล้ว +3

    1:53 I go and put the ID for zombie and teddy and when I publish it, it says submission failed HTTP Error: 422

    • @Brickwall0001
      @Brickwall0001 6 หลายเดือนก่อน

      idk if you fixed but i think its the name of the animation because sometimes that happens so try renaming it

  • @foxycrack3421
    @foxycrack3421 ปีที่แล้ว +3

    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 :)

  • @GamerTheThird
    @GamerTheThird ปีที่แล้ว +65

    FULL WORKING SCRIPT:
    MAIN:
    local mob = require(script.Mob)
    local map = workspace.Grassland
    for wave=1, 10 do
    print("Wave Starting:", wave)
    if wave

    • @abloxbablox6648
      @abloxbablox6648 ปีที่แล้ว +3

      my animation not working

    • @GamerTheThird
      @GamerTheThird ปีที่แล้ว +1

      @@abloxbablox6648 That can sometimes happen, but the animations (expect zombie on) do work. I thought that the animation doesn't work when you testview the game but it does work when you testplay the game. So my question is did you actually play it or did you let the scripts work in inspector mode?

    • @abloxbablox6648
      @abloxbablox6648 ปีที่แล้ว

      @@GamerTheThird i tested the game and the animation of the noob was not working

    • @GamerTheThird
      @GamerTheThird ปีที่แล้ว

      @@abloxbablox6648 if you placed everything in the correct folder And copied my script it should work. I have no idea why your animation doesn't work

    • @abloxbablox6648
      @abloxbablox6648 ปีที่แล้ว +2

      @@GamerTheThird do u have dizzy? cause i can send you any picture to help me out maybe? if you have time

  • @tweaker_deaker
    @tweaker_deaker ปีที่แล้ว +23

    I've spent so much time copying this and making it all but I've finally done it here's the code for anyone to take lazy or not.
    EDIT: I misspelled the animator part so if it doesn't work that's why.
    EDIT2: YOU HAVE TO WATCH THE VIDEO OR THE CODE WILL NOT WORK. And if you copy it and it doesn't work, do not come to me with problems. Just watch the video.
    Main Script:
    local mob = require(script.Mob)
    local map = workspace.Grassland
    for wave=1, 10 do
    print("Wave Starting:", wave)

    if wave

    • @Poland77777
      @Poland77777 ปีที่แล้ว

      for the module script after wave 1 it says "ServerScriptService.Main.Mob:25: attempt to index number with 'Start'

    • @tweaker_deaker
      @tweaker_deaker ปีที่แล้ว

      @@Poland77777 Did you anchor the spawn and make sure that it cannot be collided with?

    • @Poland77777
      @Poland77777 ปีที่แล้ว

      @@tweaker_deaker yes

    • @Mr.BolaArgentina
      @Mr.BolaArgentina ปีที่แล้ว +1

      for the mob module script say me Mobs is not a valid member of Workspace "Workspace"

    • @potdraws5085
      @potdraws5085 ปีที่แล้ว

      All of this works correctly - it must be an issue with the code yall are writing tbh

  • @IrisFlake
    @IrisFlake 6 หลายเดือนก่อน +1

    My tip for custom animations is you should just skip the animation part, keep the animate script, and use a npc idle animation script from the toolbox if your not up for coding it yourself

  • @redrune1860
    @redrune1860 3 ปีที่แล้ว +6

    Earlier I was struggling with collisions. Thanks for fixing my issue!

    • @RobinDeTrollBoy
      @RobinDeTrollBoy 3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@RobinDeTrollBoy make players r16, to fix it.

    • @Print_Enter
      @Print_Enter 2 หลายเดือนก่อน

      @@indominusvoids8798 R6 or R15?

  • @scratchyboiiii166
    @scratchyboiiii166 ปีที่แล้ว +3

    If you get stuck on the player still colliding with the enemies I think this is the fix:
    Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
    for i, object in ipairs(character:GetDescendants()) do
    if object:IsA("BasePart") then
    object.CollisionGroup = "Player"
    end
    end
    end)
    end)

  • @demdirtysox
    @demdirtysox 4 หลายเดือนก่อน +1

    YOU ARE THE BEST ROBLOX TH-camR EVER

  • @peavine7849
    @peavine7849 2 ปีที่แล้ว +11

    It would be nice to see a tutorial on how to work lobby elevators/teleporters

    • @Klebty
      @Klebty 11 หลายเดือนก่อน

      there is one

  • @UnScripted2101
    @UnScripted2101 ปีที่แล้ว +8

    IF YOU GUYS ARE HAVEING TROUBLE LOADING THE ANIMATION its because that you dont have an animation save if you go to the zombie that he has in his video it has a animSaved thats how the zombies the only one that has an animation so all you got to do is make and animation and save it....ALSO IF YOU dont want to make an animation all you have to do is go into the avatar mode at the top of you view click on it click on anim editor click on what you want to have the animation your then going to click the three dots press save then you want to put the animation id into the animation and it will work

    • @oofbloxGG
      @oofbloxGG ปีที่แล้ว

      wtf, I don't understand anything, pls fix ur grammar dude

    • @UnScripted2101
      @UnScripted2101 ปีที่แล้ว

      hm i was in a rush@@oofbloxGG

    • @UnScripted2101
      @UnScripted2101 ปีที่แล้ว

      xd@xyizsilver

    • @Poooooooooooooooopppppp
      @Poooooooooooooooopppppp 10 หลายเดือนก่อน

      @xyizsilver broi messed up
      \
      \

    • @masked-man78
      @masked-man78 4 หลายเดือนก่อน

      I'm having the opposite issue. The Zombie is the only one without an animation for me.

  • @GoobleMcScrooble
    @GoobleMcScrooble 3 ปีที่แล้ว +8

    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 3 ปีที่แล้ว

      it spawns too much zombies for me

    • @bodepdzai5457
      @bodepdzai5457 3 ปีที่แล้ว

      yeah

    • @sraiaan
      @sraiaan 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

      @@sraiaan i didnt put the * for my waves

    • @Averageidiot1014
      @Averageidiot1014 3 ปีที่แล้ว

      @@waktk "*" means multiplie the number

  • @DiamondOfficial001
    @DiamondOfficial001 4 หลายเดือนก่อน

    If anybody is wondering the new version of studio no longer uses animation folders so if you want to paly an animation you have to have a script and animation in the enemy instead of 1 script controlling all

    • @JettTheGuz
      @JettTheGuz 3 หลายเดือนก่อน

      how do you do that

  • @ChickenNuggetManCNM
    @ChickenNuggetManCNM 2 ปีที่แล้ว +13

    Hi, for anybody having trouble with the animations, after the walkTrack:Load() line, put
    walkTrack:Play()
    walkTrack.Looped = true

    • @basicnodes7029
      @basicnodes7029 2 ปีที่แล้ว +1

      thank you, still does not work;_;

    • @ChickenNuggetManCNM
      @ChickenNuggetManCNM 2 ปีที่แล้ว +1

      @@basicnodes7029 worked for me...

    • @basicnodes7029
      @basicnodes7029 2 ปีที่แล้ว

      @@ChickenNuggetManCNM i am stupid, i was looking at it through the "run" option, while the animations work on the CLIENT instead of the SERVER, it works, thank you!

    • @ChickenNuggetManCNM
      @ChickenNuggetManCNM 2 ปีที่แล้ว

      @@basicnodes7029 lol happy to help

    • @Poland77777
      @Poland77777 2 ปีที่แล้ว

      who do u fix this? ServerScriptService.Main.Mob:25: attempt to index number with 'Start'

  • @aok737
    @aok737 ปีที่แล้ว +5

    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.

    • @ThatGuyGblox
      @ThatGuyGblox 3 หลายเดือนก่อน +1

      me too! any ideas?

    • @aok737
      @aok737 3 หลายเดือนก่อน

      @@ThatGuyGblox pretty sure i just gave up after that

  • @jinxed-truly
    @jinxed-truly 2 ปีที่แล้ว +34

    If anyone is trying to make custom enemies and animations, before publishing the animations, make sure you set the animation priority to Movement first! ALWAYS DO THAT

    • @zachmakescontent3605
      @zachmakescontent3605 2 ปีที่แล้ว

      OMG THANKS I HAD AN ERROR BUT YOUR TRULLY A GIGA CHAD AND GAVE ME 1 SECOND TO REALISE

    • @dabugaseo2061
      @dabugaseo2061 2 ปีที่แล้ว

      it didn't work

    • @qwerty_qwerty
      @qwerty_qwerty 2 ปีที่แล้ว

      @@dabugaseo2061 can you send your script?

    • @qwerty_qwerty
      @qwerty_qwerty 2 ปีที่แล้ว

      @@crossx25 what is the error??

    • @crossx25
      @crossx25 2 ปีที่แล้ว

      @@qwerty_qwerty animation wont playing

  • @Einheitsversicherung
    @Einheitsversicherung 6 หลายเดือนก่อน +2

    To everyone who is struggling with the new Collision Thing:
    for i, object in ipairs(newMob:GetDescendants()) do
    if object:IsA("BasePart") then
    object.CollisionGroup = "Mob"
    end
    end

    • @THE-REAL-ZILLO
      @THE-REAL-ZILLO 6 หลายเดือนก่อน

      Do you have a player collision one?

  • @BryAstronaut
    @BryAstronaut 3 ปีที่แล้ว +7

    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 3 ปีที่แล้ว

      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 3 ปีที่แล้ว +1

      up

    • @quandovocefazerumvideovoud265
      @quandovocefazerumvideovoud265 3 ปีที่แล้ว +2

      @@lukiValent the config is different

  • @Cfcfgcft
    @Cfcfgcft ปีที่แล้ว +12

    for the people thats using the latest version of Roblox Studio, you might find that the PhysicsService:SetPartCollisionGroup() is now Deprecated. Instead, try this:
    for i, object in ipairs(newMob:GetDescendants()) do
    if object:IsA("BasePart") then
    object.CollisionGroup = "Mob"
    PhysicsService:CollisionGroupSetCollidable("Mob", "Mob", false)
    end
    end
    If this still doesnt work, check if your Collision Group has an uppercase "M" and not a lowercase "m".

    • @ishakw
      @ishakw ปีที่แล้ว

      Yo my mobs have hats but when I play they disappeared

    • @FusherV1YT2241
      @FusherV1YT2241 ปีที่แล้ว

      tysm

    • @3gs264
      @3gs264 ปีที่แล้ว

      tysm! it works

    • @Cfcfgcft
      @Cfcfgcft ปีที่แล้ว

      @@ishakw idk how to fix that my hats work perfectly fine

    • @TheTangyTuber
      @TheTangyTuber ปีที่แล้ว

      what did u put in for the playeradded script?

  • @Databat123
    @Databat123 11 หลายเดือนก่อน +5

    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 11 หลายเดือนก่อน +2

      What's the fix?

    • @Thestarman122
      @Thestarman122 7 หลายเดือนก่อน +6

      haha yeah man good thing it was a simple fix man haha no need to tell us right

    • @Richiemine01
      @Richiemine01 6 หลายเดือนก่อน

      Can u tell me the fix im new to roblox studio, pls

    • @ieid73
      @ieid73 หลายเดือนก่อน

      WHATS THE FIX

    • @Databat123
      @Databat123 หลายเดือนก่อน

      @@ieid73 LMAO my youtube is blasted usually with notifications so I didn't notice you all asking until now.
      The fix was that I had to rename the animations folder, then reimport the animations itself to make sure that each one was correctly made and imported with a chance of corruption. After all of that I would do a quick revision to make sure all of the code was correctly typed in, so that nothing was out of place. This is important later in the series since he tends to implement and remove a lot of code, so making sure to know which is where is a good habit.

  • @PokePawn0189
    @PokePawn0189 8 หลายเดือนก่อน +1

    10:10 just marking my spot great tutorial so far 🦆

  • @EngineerLegacy
    @EngineerLegacy 10 หลายเดือนก่อน +4

    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 10 หลายเดือนก่อน +1

      Thank's dude!!

    • @friyTD
      @friyTD 10 หลายเดือนก่อน +1

      Exactly the issue I was facing, thank you!!

    • @okayultra
      @okayultra 9 หลายเดือนก่อน +1

      Alternate solution:
      for checkpoint = 1, #checkpoints:GetChildren() do
      repeat
      guy:MoveTo(checkpoints[checkpoint].Position)
      local reached = guy.MoveToFinished:Wait()
      until reached
      end

  • @Plant-tern
    @Plant-tern 3 ปีที่แล้ว +5

    This series is amazing!! Pls keep this up GnomeCode!! your the one and onlying can know how to create tds games!😃😃

    • @GnomeCode
      @GnomeCode  3 ปีที่แล้ว +4

      Thanks! Will do!

    • @cheeyew4932
      @cheeyew4932 3 ปีที่แล้ว +2

      @@GnomeCode you are the best

    • @KarlisTaken
      @KarlisTaken 3 ปีที่แล้ว +1

      ​@@GnomeCode yo you are the best teacher I've ever seen, go like that people like you

    • @water_yt9627
      @water_yt9627 2 ปีที่แล้ว +1

      nvm

    • @jupesjack8871
      @jupesjack8871 2 ปีที่แล้ว

      @@GnomeCode can you make a video showing us how to make the enemy waves great series btw

  • @matthewn4988
    @matthewn4988 2 ปีที่แล้ว +5

    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 2 ปีที่แล้ว

      @@matikawaii1452 Really??

    • @matikawaii1452
      @matikawaii1452 2 ปีที่แล้ว

      @@FakeCletus yeah you have to make your own

    • @FakeCletus
      @FakeCletus 2 ปีที่แล้ว

      @@matikawaii1452 Yeah.. about that the zombie one I already have the animation but the teddy one IDK how to make one..

    • @FakeCletus
      @FakeCletus 2 ปีที่แล้ว

      @@matikawaii1452 Yep already done ty.

  • @kostik2350
    @kostik2350 10 หลายเดือนก่อน +1

    what to do if all waves are activated at once?

  • @JoshuaMemers
    @JoshuaMemers 2 ปีที่แล้ว +5

    If your trying to solve an issue where animations doesn’t load but there’s no any errors, the animations don’t load when you use Run Mode, so Use Play

    • @ARTIFICIALLYCRAFTED-457
      @ARTIFICIALLYCRAFTED-457 2 ปีที่แล้ว

      idk y it does not work

    • @ARTIFICIALLYCRAFTED-457
      @ARTIFICIALLYCRAFTED-457 2 ปีที่แล้ว

      here is my code : local function animateMob(object)
      local humanoid = object:WaitForChild('Humanoid')
      local animationsFolder = object:WaitForChild("Animations")

      if humanoid and animationsFolder then
      local walkAnimation = animationsFolder:WaitForChild("Walk")
      if walkAnimation then
      local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
      local walkTrack = animator:LoadAnimation(walkAnimation)
      walkTrack:Play()
      end
      else
      warn("no humanoid/animation folder for", object.Name)
      end
      end
      workspace.Mobs.ChildAdded:Connect()

    • @MerlucinYT
      @MerlucinYT 2 ปีที่แล้ว

      Ty! I was starting to worry, checkes the script and didnt find any errors, but now i Know its cuz i was using run mode, ty.

    • @TheHeadlessMario
      @TheHeadlessMario 2 ปีที่แล้ว

      i dont know what you mean

    • @fieron4106
      @fieron4106 ปีที่แล้ว

      OH MY GOD THANK YOU I'VE BEEN USING RUN FOR TWO HOURS

  • @BRO-ij9uz
    @BRO-ij9uz ปีที่แล้ว +12

    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 ปีที่แล้ว

      TYSM

    • @foxyonpaws1
      @foxyonpaws1 ปีที่แล้ว

      BRO TYSM I WAS LITERALLY ABOUT TO BLOW MY HEAD OFF

    • @justinbound.4663
      @justinbound.4663 ปีที่แล้ว

      It doesnt work :(

    • @VictorTheScripter
      @VictorTheScripter ปีที่แล้ว

      where do i input it

    • @YaBoyEv
      @YaBoyEv ปีที่แล้ว

      @@BloonPlayshey where do u input?

  • @wallstreetplays
    @wallstreetplays 3 ปีที่แล้ว +7

    theres a bug where slow enemies skip checkpoints and head onto the next one
    Edit: To fix, You need to add multiple checkpoints on the same line.

    • @reldanboat3684
      @reldanboat3684 3 ปีที่แล้ว

      just added one half way through the line

    • @Vexnn-
      @Vexnn- 2 ปีที่แล้ว

      thx, it worked

    • @silviaavdala4964
      @silviaavdala4964 2 ปีที่แล้ว

      *waypoints* thank you! :)

    • @wallstreetplays
      @wallstreetplays 2 ปีที่แล้ว

      @@silviaavdala4964 I fixed it
      You repeat going to waypoints
      UNTIL the next waypoint is reached
      this prevents skipping AND you dont gotta add extra

    • @juliethawng5742
      @juliethawng5742 2 ปีที่แล้ว

      -no-

  • @FlyinFinnMotorsportVideos
    @FlyinFinnMotorsportVideos ปีที่แล้ว +1

    one of my mobs says Requested mob does not exist :(

  • @Stef-h2g
    @Stef-h2g 5 หลายเดือนก่อน +4

    the animations aren't working for me i tried every way .-.

  • @deepeh7252
    @deepeh7252 ปีที่แล้ว +4

    can anyone tell me why object.CollisionGroup = "Mob" isnt working even if i replace instead of PhysicsService:SetPartCollisionGroup = (object, "Mob") they still collide, my code is
    local PhysicsService = game:GetService("PhysicsService")
    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
    for i, object in ipairs(newMob:GetDescendants()) do
    if object:IsA("BasePart") then
    object.CollisionGroup = "Mob"
    end
    end
    coroutine.wrap(mob.Move)(newMob, map)
    end
    else
    warn("Requested mob does not exist:", name)
    end
    end
    return mob

    • @Floppaa_
      @Floppaa_ ปีที่แล้ว

      if you named the collision group mob then type "mob" or if you named the group Mob then type "Mob" if it doesnt work then idk

    • @antonshevtsov692
      @antonshevtsov692 ปีที่แล้ว

      it does not come out to replace their mobs get up in the place where they put it and why is that?

  • @Noalogy
    @Noalogy ปีที่แล้ว +4

    To people saying the animations don't work, I have the solution. There is either 2 things wrong
    1. You're running instead of playing (local script = client side, running is server side) (ALMOST ALWAYS THE CASE)
    2. You've incorrectly typed the script

  • @RobloxCato
    @RobloxCato ปีที่แล้ว +1

    I'm having a trouble with slow enemies. When they move, they don't fully get to the waypoint. How to fix this?

    • @antonshevtsov692
      @antonshevtsov692 ปีที่แล้ว

      it does not come out to replace their mobs get up in the place where they put it and why is that?

  • @Enovinx
    @Enovinx 3 ปีที่แล้ว +4

    This is a really helpful series thanks so much.

    • @GnomeCode
      @GnomeCode  3 ปีที่แล้ว +1

      Glad to hear it!

  • @Lua_Dude
    @Lua_Dude ปีที่แล้ว +4

    For those with none or only one mob animating with custom animations:
    1. Set the animation priority to ‘Movement’.
    2. Under the ‘Print WAVE STARTING’ add in a ‘wait()’.
    Hopefully this helps 🤞

    • @ZoomingFTW
      @ZoomingFTW ปีที่แล้ว

      @IFeelBricky- same

    • @_Tiz
      @_Tiz ปีที่แล้ว

      have you found the solution?
      @IFeelBricky-

    • @Aggelosgeo3
      @Aggelosgeo3 ปีที่แล้ว

      Same

    • @AceEyon
      @AceEyon ปีที่แล้ว

      where do i set it to movement??

    • @MON0PLAYZ
      @MON0PLAYZ ปีที่แล้ว

      @IFeelBricky- same