Can we all agree that these tower defense stuff get better and better the more we watch them
@ekto36873 жыл бұрын
@Cayden lee Cox yep probably
@yesimdre3 жыл бұрын
eye candy
@hetzo67183 жыл бұрын
Yessir
@TheLogster963 жыл бұрын
Ya
@mobileobbygod25893 жыл бұрын
I do
@Ultimantecat3 жыл бұрын
I like how he doesnt just create tutorials and tell you how do do things... he teaches you as well and shows you common mistakes people do. thats awesome
@snowtotoy9177 Жыл бұрын
thats what tutorials are they teach you
@NeonLabsss Жыл бұрын
yeah it's great I'm following the series to learn and test my scripting
@d00mprod10 ай бұрын
It's great when the SAME PERSON (Or should I say bot) COMMENTS THE SAME MESSAGE
@thewisearchitect22 күн бұрын
Thanks!
@GnomeCode22 күн бұрын
Much appreciated, all the best with your game!
@foolspark2 жыл бұрын
I'm only a couple of episodes into this series and this is honestly amazing. I've seen so many roblox scripting tutorial youtubers try and do game development series like these, but never manage to execute it as well as you do. You go really into depth and explain thoroughly whenever you try to teach something, instead of just giving us the code, and telling us to copy it down.
@HoopsTheBee3 жыл бұрын
Geez man! You really banging these out. Love it!
@morelakritssnovit42952 жыл бұрын
love ur vids
@ideal.leader2 жыл бұрын
didnt expect you here at all hoops, i love your channel!
@certifiedbrickbattler10 ай бұрын
BEE SWARM MAN!?
@accid_ttv36993 жыл бұрын
Finaly another episode that i can spend 5 hours to do what he did in 15 minutes
@Dashing_Geometry3 жыл бұрын
true
@masondoesxd3 жыл бұрын
what? it takes like 30 mins to follow his tutorials unlike any other ones that actually take 5 hours...
@sivvim3 жыл бұрын
it takes me 14 minutes 👀
@pixelatedluisyt3 жыл бұрын
you’re complaining about that instead of commenting something like “your teaching me a lot, love the tutorials”
@universlion Жыл бұрын
8:48
@jigglyjosh50473 жыл бұрын
with this in hand, we could use this to when we hover over an enemy it can display their health, as well as towers, we can see their level, range etc. This series is very helpful!
@LeoKhol3 жыл бұрын
you can use mouse.Target tho
@wallop5603 жыл бұрын
@@LeoKhol thats what i was saying LMAO
@inactive37722 жыл бұрын
@@LeoKhol mouse is superseded
@pepperdayjackpac45212 жыл бұрын
@@inactive3772 but it’s not deprecated
@inactive37722 жыл бұрын
@@pepperdayjackpac4521 its recommended to use other methods
@Norrday3 жыл бұрын
FINALLY YES I'VE BEEN WAITING THANK YOU FOR MAKING THESE TUTORIALS SO MUCH!
@Wazzalish3 жыл бұрын
I love how you make tutorials from scratch instead of a “Kit”.
@Axium3 Жыл бұрын
oh my gosh you are right. ive tried to make a fighting game but every tutorial said to use so many scripts
@PineBloxx3 жыл бұрын
Merry Christmas Gnome! Well done for this year and best of luck for the next!
@mrflovs7542 жыл бұрын
the outro is the best thing i've seen all week
@tweaker_deaker2 жыл бұрын
Here's the script so you don't have to do it all and get stressed because you get an error! GameController: local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local camera = workspace.CurrentCamera local item = nil local function MouseRaycast() local mousePosition = UserInputService:GetMouseLocation() --print(mousePosition) local mouseRay = camera:ViewportPointToRay(mousePosition.X, mousePosition.Y) --print(mouseRay) local raycastResult = workspace:Raycast(mouseRay.Origin, mouseRay.Direction * 1000) --print(raycastResult) return raycastResult end UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then if item:IsA("BasePart") then item.Color = Color3.new(1, 0, 0) end end end) RunService.RenderStepped:Connect(function() local result = MouseRaycast() if result and result.Instance then item = result.Instance end end)
@Ego_to_ID2 жыл бұрын
god bless you
@tweaker_deaker2 жыл бұрын
@@Ego_to_ID You're welcome.
@ouren3220 Жыл бұрын
TYSM it saved a lot of time i think
@bowmin1 Жыл бұрын
I wouldn't just copy and paste this. I would advise trying to understand it and write it yourself. You aren't learning if you just paste it, and if you don't understand it you can't make updates and changes in the future.
@roblox-w6d6l Жыл бұрын
w rizz
@sirmansir196420 сағат бұрын
Had to participate in villainous laughing while turning my world red, peak tutorial, you've earned the likes
@murganes31073 жыл бұрын
Thank you gnome, your tutorials are sooo amazing!!! Please keep up the great work!
@TiggyChiChi4 ай бұрын
its like each of these videos is a boss battles for me because at end i always do something wrong. *best roblox coding youtuber ever btw*
@TotaIIyNotBanana3 жыл бұрын
Time Stamps: Intro - 0:00 Detecting the mouse position - 0:30 Getting mouse ray - 3:50 Making raycasts - 6:00 Using RunService - 8:06 Interacting on click - 10:35 Outro - 14:30
@susfallenking41313 жыл бұрын
Not trying to be mean, but you can look at it in the description
@jamesclack8822 жыл бұрын
Thank you this is an amazing tutorial this is the first GOOD one i have found in ages
@The_RandomizedАй бұрын
NIce outro!!
@drowsycosmic48543 жыл бұрын
What's your philosophy behind naming your variables? Which variables do you name using PascalCase, camelCase, snake case, etc. Also keep up the great content always look forward to your next video!
@GnomeCode3 жыл бұрын
Good question. I always name services in PascalCase using their full name, then generally use camelCase for all other variables
@mageninjaballer14493 жыл бұрын
@@GnomeCode what the difference??????
@drowsycosmic48543 жыл бұрын
@@GnomeCode Thank you so much
@entityofanimations39523 жыл бұрын
@@GnomeCode GnomeCode everything is working but the raycasting doesn't work for mobile does anyone know a way to make it work on mobile also?
@Norrday3 жыл бұрын
@@entityofanimations3952 he said in the video it won't work on mobile.
@akiprox72 жыл бұрын
Tysm man! Best TD series ever!
@theblaze89miller3 жыл бұрын
love this, hope to see part 6, cant wait to brag to my friends i made a tower defense game from scratch
@eiruujj3 жыл бұрын
you should not brag it will come back to you
@Wertyhappy273 жыл бұрын
Following a tutorial isn't from scratch
@GnomeCode3 жыл бұрын
Best of luck with your game!
@theblaze89miller3 жыл бұрын
@@Wertyhappy27 what i mean is i didnt used that many free models
@theblaze89miller3 жыл бұрын
@@GnomeCode also the player colliding with mobs and the mobanimations scripts do not work and i don't know why
@BBTProductionsArchive3 жыл бұрын
Amazing tutorials! With this new feature, I'm wondering if we could do stuff like level up towers, view range, etc. looking forward to seeing where this tutorial goes. :)
@sliceggjd3 жыл бұрын
This is just one word "AMAZING!"
@clapanimates3 жыл бұрын
I’ve always wanted to make a td game ever since below natural made one and now I can because you are making this!
@reddeadleisure3 жыл бұрын
0
@Dusty27633 жыл бұрын
the best tutorial KZbinr ever
@BrenFirely3 жыл бұрын
Finally someone do tower defense tutorial which I wanna learn from a long time😥 thank u!!!
@WearWQLF3 жыл бұрын
I bet you at the end of this tutorial 75k subscribers good work gnomecode
@janmorenob16153 жыл бұрын
Gnome, please do this in episode 5: Make inventory system of towers Animations of tower (shooting, idle) ofc Saving system Lobby Special abilities of towers
@theblaze89miller3 жыл бұрын
this is episode 5
@Norrday3 жыл бұрын
too much for one episode.
@beniciogames49533 жыл бұрын
Its basically one of those per ep but its too soon for that
@lukiValent3 жыл бұрын
idle animations for towers is just add a random animate script that loops forever
@DaWaffleman2 жыл бұрын
This episode is episode 5...
@Dafusionplays3 жыл бұрын
When is episode 6 coming out? I’ve always wanted to make a tds game for years but here it is!! Thanks so much GnomeCode!!
@baconlol37163 жыл бұрын
maybe
@pixelatedluisyt3 жыл бұрын
2 days least probably 5 days max
@Zane-Satoru3 жыл бұрын
bro it came out 3 hours ago dont rush
@Dhfhdjhfjnd3 жыл бұрын
I don’t understand very much of this but I still love watching it
@GnomeCode3 жыл бұрын
Thanks for dropping by. I know some of the things shown here are a little advanced bit if you're looking to get into scripting I'd recommend Che king out my beginner series on making your first game
@GamingCadeez10 ай бұрын
Wow! This is amazing!
@jhkz3 жыл бұрын
That's so simple to understand, thank u bro ;)
@GnomeCode3 жыл бұрын
Always great to hear, thank you!
@neutralizedadd39902 жыл бұрын
2:23 I learned that not putting a wait is a bad idea the hard way lol
@Zylxk2 жыл бұрын
jeez, must have did the poor gpu a burden
@Tiny_bigninja Жыл бұрын
@@Zylxknah the script just ends now (luckily)
@jokeyjosee46056 ай бұрын
Another Awesome Video
@alskopim3 жыл бұрын
You literally showed me all the things i needed to know, that other youtubers barely could make a tutorial on!
@GnomeCode3 жыл бұрын
You're welcome, best of luck with your project!
@alskopim3 жыл бұрын
@@GnomeCode Thanks!
@MrSpace52603 жыл бұрын
i will probably never be abled to make a game like that but its fun to watch you make one ngl
@Scorpio8943 жыл бұрын
Can you make a lobby and shop at the end of the series
@Scorpio8943 жыл бұрын
I'm trying to make my own tower defense game and I was just wondering so I can make my dream game
@GnomeCode3 жыл бұрын
Sure, though we need to make all the main game mechanics first - much to do!
@christiannacin7283 жыл бұрын
@@GnomeCode thank you
@christiannacin7283 жыл бұрын
@@Name_thing it is gonna be star wars tower defense not the best graphics since im a solo developer but trying my best
@christiannacin7283 жыл бұрын
@@GnomeCode im gonna add you as a tower youll be a jedi what color light saber you want
@ICEDSummer3 жыл бұрын
YO LETS GO THANKS FOR THE TUTORIAL
@jinxed-truly7 ай бұрын
thx for the tutorial i love this series!
@Jokubasas7 ай бұрын
The code worked for you? Because mine doesnt
@jinxed-truly7 ай бұрын
@@Jokubasas it certainly does, did you double-check that your code is exactly the same as gnomecode's?
@Jokubasas7 ай бұрын
@@jinxed-truly i did it a lot of times i even changed the BasePart into Part and none worked
@trashrobloxkid2 жыл бұрын
The GameController script is kind of working but also not. I can make my avatar red by clicking it but not the baseplate or anything else. It says (Players.Me.PlayerScripts.GameController:24: attempt to index nil with 'IsA'
@BrianBaniewicz Жыл бұрын
Try using a function
@Nepomni_Original17 күн бұрын
Late then never ahh comment so there script how to script ur err function Raynew() local RayParams = RaycastParams.new() RayParams.FilterType = Enum.RaycastFilterType.Exclude RayParams.FilterDescendantsInstances = {plr.Character}
@NikolasH1232 жыл бұрын
i thought you were making a tower defence not a paintball :D jk, really appritiate this tutorial, im not even making a towr defence, i watched this on random and it really helped me with my game, thnaks
@theofficialjorden2263 жыл бұрын
Will you do things like a shop, unlocking towers with levels, tower upgrades, and animations, certain places where towers can be placed, or enemies attacking towers and cool stuff like that, or some of the basic stuff like things from Bloons TD? Either way, it's helping people who don't know much about scripting create a tower defense game
@calengo4543 жыл бұрын
That's the problem. IMO people who are new to scripting should start with much simpler projects in which don't make you just copy scripts, like 89% are doing. I wish every person in the comments would know that you won't learn or make a good game if you ALWAYS use other's stuff and pollute the comment section with "Hi WiLl yOu mAkE a flYIng rObOT That SHooTs Cars?? Btw I'M haVinG proBLEms with The ScRipT i litEraLLy juSt CopIeD fRom YOu!!!1 whIch meAns tHe TuToRIAl wON't WoRK and it'S YOuR faULt!!!!1 "
@lambarini3 жыл бұрын
@@calengo454 true but at the same time no. I learned ALOT from tutorials and now I can code stuff but nothing crazy. The problem with people is that they just copy and don't look into it.
@calengo4543 жыл бұрын
@@lambarini yes, that's what i meant. i was referring to people that always ask for others to make stuff for you, without even trying anything. i had a friend like this and thankfully i didn't make anything for him. i also learned from "how to make a game" tutorials but their comment sections are filled with people that think scripting is just copying from a tutorial, which almost always end up in them saying "tutorial doesn't work". sure copying some stuff is ok who doesn't do it but it's like you said, they don't look into it and have absolutely no idea what they're doing my biggest problem with doing gigantic projects is that i tried to make one when i didn't know anything and i almost gave up forever, and i don't really want that to happen to other people... it sucks
@theofficialjorden2263 жыл бұрын
@Bocho no, I know how to script and I'm not making a tower defense I'm making a platformer game
@theofficialjorden2263 жыл бұрын
the game is being solo developed by me. It's hard, but everything is coming along great. the platformer mechanics let you do acrobatics like Mario and you can gain momentum by going down slopes and stuff like a sonic game. I also made the music soundtrack sound something like Sonic Adventure 2 and Sonic Mania. The game was supposed to be released this year but got delayed until next year because of Roblox being down and some school stuff.
@sebobebo103 жыл бұрын
This series is actually really helpful, I do have one question about line of sight. So basically, if there was a tower placed in the middle of the map and there was terrain between the tower and the enemy, the tower cannot shoot the enemy. So how would that be scripted
@GnomeCode3 жыл бұрын
You could use raycasting for that if you wanted, though I don't think many games use line of sight for there towers. After all, it's more of an 'arcade' type game
@charlenebell7026 Жыл бұрын
I don’t know how many parts he has anyway
@blockyee3 жыл бұрын
This is amazing your so underrated
@dog_mco27013 жыл бұрын
ik u upload next video fast but i want them faster i cant wait to complete my game thanks so much for helping me
@TheTomatoo Жыл бұрын
Hello, GnomeCode! Can I use Player:GetMouse() instead of mouse raycasting ?
@Triploonic6 ай бұрын
@minuscat666 I'm pretty sure you can.
@PeaKanin3 жыл бұрын
i tried once... but failed. thanks for helping me see the light! you're the best!
@skaiomg3 жыл бұрын
A bit late, but congrats on 3 years gnome! :D
@GnomeCode3 жыл бұрын
Thank you!
@skaiomg3 жыл бұрын
@@GnomeCode No problem! I love your content!
@policiamilitar90602 жыл бұрын
You too can do: Players = game:GetService("Players") Mouse = Players.LocalPlayer:GetMouse() task.wait(3) print(Mouse.Hit.Position)
@znightmxrę-wr3 жыл бұрын
Can you'd do the range of the tower
@GnomeCode3 жыл бұрын
We covered this in the last episode. Remember that 'maxDistance' variable?
@erky22643 жыл бұрын
@@GnomeCode i think he means about the half transparent cylinder that shows their distance
@GnomeCode3 жыл бұрын
@@erky2264 Ah yes, we'll be making things look a bit more pretty eventually
@mageninjaballer14493 жыл бұрын
@@GnomeCode ah yes will we use brightness and stuff like that like bloom? For sun and like raycasting for rays?
@gobokoboobo46203 жыл бұрын
For now you can attach a transparent cylinder part at the bottom center of your tower and change the size of it to whatever your maxDistance is times 2. If your maxDistance is 50, then the size of the cylinder should be 100x100.
@aaronmclemore33683 жыл бұрын
Hey gnome I have a question could u show a tutorial on how to make a map voting system and when the map gets the higher votes it teleports u to that map with a timer when the game is done and a intermission so u can be ready to select that map
@Wazzalish3 жыл бұрын
Will we get to make difficulty buttons before round 1 starts? Like Easy, Normal, Hard modes?
@kam78222 жыл бұрын
I was having a ton of trouble with unions not changing colour and bam 14:08 he just solves it XD
@zoop08_3 жыл бұрын
May you do a reverse path tutorial for humvees or things that come from exit
@chrisk5397 Жыл бұрын
im making a case game where you can build with a hammer and needed to get something to help me out, this was the perfect video 10/10
@Venox21065 ай бұрын
if you click and doesn't paint red You may need to change BasePart to Part
@TransportBacon8 ай бұрын
very good going to do this episode later my tower defense game is forming because of this series
@br1an07293 жыл бұрын
ur videos are so good, I'm also trying to make a tower defense game and I want a main lobby in it. Can u make a video about how to do this plss?
@JayBeeLucas3 жыл бұрын
AGREED
@That_stupid_guy3 жыл бұрын
It’s not that hard you just make one
@JayBeeLucas3 жыл бұрын
@@That_stupid_guy HOW?
@GnomeCode3 жыл бұрын
Yes, but it probably won't be until near the end
@putrisuryodinoto1823 жыл бұрын
Agree, Btw gnomecode u will make lobby tutorial and the shop thing (or others) right?
@jakubkopyowski42382 жыл бұрын
i have a question to GnomeCode and you guys: How did GnomeCode turned the animations back on? In last episode animations didn't work. Can someone tell me how? GnomeCode answer please.🤗
@cryptex6709 Жыл бұрын
bro press play
@hamunja Жыл бұрын
hey GnomeCode! this video helped me alot but i cant seem to find a work around with a bug -.-" on realistic 1st person a headcam is inserted onto the player and made the subject but since its there on first person, the mouse ray detects only the headcam and not the otherparts
@gracetaylor75562 жыл бұрын
thanks gnomecode!! someone in ur discord helped me btw
@Arli242 жыл бұрын
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local camera = workspace.CurrentCamera local function MouseRaycast() local mousePosition = UserInputService:GetMouseLocation() print(mousePosition) local mouseRay = camera:ViewportPointToRay(mousePosition.X, mousePosition.Y) print(mouseRay) local raycastResult = workspace.Raycast(mouseRay.Origin, mouseRay.Direction * 1000) print(raycastResult) return raycastResult end UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then if item:IsA("BasePart")then item.Color = Color3.new(1,0,0) end end end) RunService.RenderStepped:Connect(function() local result = MouseRaycast() if result and result.Instance then print(result.Instance.Name) end end)
@pixelatedluisyt3 жыл бұрын
yes i knew it came today this is gonna be great Oh also fun fact all episodes put together (so far) are 1 hour, 20 minutes, and 28 seconds long
@GnomeCode3 жыл бұрын
Much better broken down into individual episodes!
@pixelatedluisyt3 жыл бұрын
@@GnomeCode yep
@Trohten2Roblox3 жыл бұрын
Nice but wait if actually we use world raycast to the last checkpoint to the before last checkpoint for see if zombie, if not then we world raycast again to the before last checkpoint and if not zombie we continue right to the start and if result then we check if it s an enemy and if yes then we found the 1 enemy Tada, sorry for the long text x)
@BananaCode3 ай бұрын
Great tutorial, even after 2 years! The only thing I'd like to see is mobile support for the input.
@TDSUNI3 жыл бұрын
One thing: To make a TD game like TDS, you need to get a lobby with elevators teleporting you to the main game, telling you which wave your on, intermission for placing towers, and spaced out enemies.
@tomfooIeryz3 жыл бұрын
yeah duh almost every TD game has that
@TheDevOfScript22 күн бұрын
YAY GNOMECODE MAKING SURE TO PUT SHOUT OUT IN MY GAME UR THE BEST
@jasonfun4069Ай бұрын
Wait when i turned everything red, the tower and terrain i designed isn't changing color. Can you help?
@entityofanimations39523 жыл бұрын
GnomeCode everything is working but the raycasting doesn't work for mobile does anyone know a way to make it work on mobile also?
@sleepingcat72783 жыл бұрын
Hey u will do a video of how to make towers that can spawn things from the end to the start like a car and damage the enemies
@akiprox72 жыл бұрын
Amazing! Thank you!
@triducal3 жыл бұрын
im assuming you will be able to place rhe tower anywhere in the ground and not in a grid-lock?
@sodiumchloride88863 жыл бұрын
YESS PART 5!!!!!
@catthrower423 жыл бұрын
Im not even gonna use this. But im watching it for fun (: keep up the Good work Gnomecode!
@GnomeCode3 жыл бұрын
Thanks, will do!
@adam_always19458 ай бұрын
Is this video just for painting stuff different colors btw this is a question
@GrimGamingTheOfficial8 ай бұрын
no its setting up for the next episode so the next episode isn't an hour long :)
@adam_always19455 ай бұрын
Okay thanks
@verybasicchannel3 жыл бұрын
on the first few parts of scripting, it only waited there for 3 secs (because task.wait was equal to 3) then gave me the location, i counted 3 again, and what popped up was nothing, so i had to put it under a while true do function. And when i put processed at line 18, it appeared undefined, explains the blue line under processed. SAME THING WITH INPUT.
@CheeseCookie_TD6 ай бұрын
it doesnt work for me, i did everything right and theres not even an error message, why?
@chasesheridan31092 жыл бұрын
When i did the part where it would print what material the mouse is touching, it broke to only say i was touching the baseplate
@jackinoz5 ай бұрын
@GnomeCode Im having issues when ever I click on anything it would say "color is not a valid member of (what i clicked)" you know what's wrong
@catdoor36763 жыл бұрын
Oh nice
@notgamegamebrotrust4 ай бұрын
can anyone tell me why his animations magically started working after the episode before at the end of the video where they were broken?
@bigbungas1132Ай бұрын
If u got a model just highlight it instead i used chatgpt so istead of coloring it highlighted
@ambarkegamer45283 жыл бұрын
Ths is so cool I'm excited if you end of crate the map
@Mighty1806813 жыл бұрын
in episode 6 will we make bullets that show if the zombies get hit or not? if not thats an idea for yah
@Gumbibull2 жыл бұрын
just keeps getting betterawwerrwe
@MasterDiddyVR9 ай бұрын
I know i am a little late but was wondering what was happening because in the last video at the output it had it going every second but in this video i saw a 30 second gap between the waves is there a way I can fix this?
@IcyOmnivore3 жыл бұрын
So I have a problem with my mouse ray problem when it said : is not calling a member function Getservice and my loadAnimation said require the humanoid object to be a decsendant of the game object
@Sergiottooo3 жыл бұрын
I have a problem, ehr script say me “position is not a valid member of model “workspace. Tower”
@PacmanTV313 жыл бұрын
For an episode could you show us how to make different enemies have different health values? + healthbar?
@kittykatgameree75903 жыл бұрын
if you go to humanoid under your enemies you should be able to set health and maxhealth from there
@Babtu786 ай бұрын
I stuck here becouse Playerscripts (or how its named) dont work WHAT shuld i do?
@sodiumchloride88863 жыл бұрын
12:55 I'm confused because "processed" and "input" show up orange underlined. Anybody know what this is?
@sodiumchloride88863 жыл бұрын
OHHH nevermind i found out what it meant
@noobynate_49552 жыл бұрын
Is there a way to change their targetting to not be the closest? (ex: first instead)
@codingidiot67542 жыл бұрын
how would you shoot a raycast to the mouseray hit position?
@totallyoofify53193 жыл бұрын
Is there a way to make hidden enemies that you need to upgrade your tower to kill
@RomRomChoppa2 жыл бұрын
uhh the mouse position wont print
@Windy9132Ай бұрын
I know this is late but you have to play as the player instead of camera
@fireplayz82683 жыл бұрын
Hey question on episode #4 the mobs didnt walk anymore and u wil be able to see that on ur screen how did u fix these?
@monke_7443 жыл бұрын
my computer died from your great knowledge
@iwogold3 жыл бұрын
can part 6 be about making the base health or something
@DaWaffleman2 жыл бұрын
Should I just disable first person, because it doesn't work in first person at least for me? But that was a really good video, good job!