Game Lobby Elevators - Tower Defense Tutorial #20
Multiple maps, and the ability to argue with your friends over what map to vote for!
ROBLOX WIKI ►developer.roblox.com/en-us/ar...
DISCORD ► / discord
TWITCH ► / gnomecode
TWITTER ► / gnomecoderblx
TIMESTAMPS ►
0:00 Intro
1:25 Building elevator
3:00 Prismatic constraints
7:45 Scripting elevator
9:22 Elevator entry
16:12 Players waiting
18:10 Camera positioning
25:12 Exiting elevator
29:30 Countdown status + UI
35:43 Max players
41:56 Hide exit button
43:50 Virtual server testing
46:30 Using TeleportService
48:30 Publishing places to game
51:45 Simple TeleportAsync
54:12 Reserved Server teleport
55:55 Handling fail states
1:00:45 Return to lobby teleport
1:05:52 Sending teleport data
1:07:00 Testing
1:08:08 Receiving teleport data
1:10:38 Adding more elevators
1:11:58 Outro
Пікірлер: 1 000
Roblox wiki article on handling failed teleports (referenced from 56:36) onwards: developer.roblox.com/en-us/articles/Teleporting-Between-Places
@palistar
2 жыл бұрын
E
@junnescondes3583
2 жыл бұрын
Dude im kinda lazy to script can you plz make an paste bin on your scripts pls
@palistar
2 жыл бұрын
@@junnescondes3583 the point of tutorials is to understand how it works not just copy and paste stuff but I agree that having a pastebin would help for people who made mistakes in the script and cant find them
@junnescondes3583
2 жыл бұрын
@@palistar ;--;
@Kl1shh
2 жыл бұрын
LES GOO
can we all just give respect to this guy for spending hours teaching us how to make games, for our benefit and not his own
@DaRealKiko
2 жыл бұрын
agreed 🦵🤚😀✋🦵
@sinzy1067
2 жыл бұрын
ong, tysm gnomecode for inspiring me to learn scripting
@Dalighting
2 жыл бұрын
Bruh the first video didn't work so I have to by myself and I'm almost done.
@CloudsDragon1
2 жыл бұрын
@@Dalighting you probally made a mistake its lot of code
@DevBlayz
2 жыл бұрын
Technically, gnome gets money from the watch time ppl spent on his vid
I just started this tutorial 3 days ago, and it suprises me how the 20th episode came out when I just started this tutorial, amazing work keep it up!!
Oh yes, I've been waiting for this part of GnomeCode for so long, thank you very much.
Just Saying thank you so much for making these I was questioning if I should at least try to make a game, but youre tutorials inspires me to make a game. So I have a lot of respect for what you do for all of us
Gnomecode, you have truly made my dream I have had for a long time a reality. I never thought it would come to this but the game is better than I could have ever imagined. Thank you so much.
@Cici_Bici
Жыл бұрын
I have expected identifier when parsing expression, got "end" error in my Developer Console.C an you help?
@gdude1351
Жыл бұрын
@@Cici_Bici if it’s an end error, try deleting or adding another end because you either don’t have enough or you have too many
@Cici_Bici
Жыл бұрын
@@gdude1351 but i dont have any red things or output errors
@Cici_Bici
Жыл бұрын
@@gdude1351 It solved. idk what i did
@Cici_Bici
Жыл бұрын
@@gdude1351 I have another problem. Can you help me to how to make more elevators. I have 26 elevators. When i entered elevator and exit that elevator it spawns me another elevators TeleportOut.
You need to keep going, this guy changed my life when he did his teddy series and that’s when I started coding when his how to make a game series came out! :D
gnome code I have to say I'm super grateful that you spend your time every day making these educational videos to help us it means a lot before this I spent hours on looking for tower defense tutorials because I didn't know how to make one thank you.
Tysm man! I never knew you just needed to publish to roblox, I would've been doing a lot of options just to save the game! Tysm man! This series are amazing!
The efforts you put in these tutorial video is very helpful. And it's also life saving video cuz you help people to make a TD game. Thanks👊🙏
Thank you for this! I'm working on a game that needs a teleport elevator and this helps a lot. Now I just need to figure out how to make it so the elevator can teleport to multiple places depending on what's selected
YESS ITS COMPLETE JUST WHAT I NEEED TY FOR MAKING THIS AFTER WAITING FOR SOOOOOOOOOOOOOOO LONG
This series is great 👍
You > all YT programmers The intro is actually good makes lots of opportunities to test 100% accurate actually make peoples ideas in game helps people nice endinding easy to follow
Things that would be great for this series: 1. Story mode for map selection, making you start at level 1 unlocking the next ones as you beat the previous level with set in maps 2. Towers that deal damage and apply a periodic damage effect like burn, bleed, along with a particle effect that attaches to the enemy for the duration of the effect 3. towers that do aoe area of effect damage like in a circle splash around the target or a cone extending from the tower. 4. Utility units that slow, or clickable icons on the stats gui that activate a cooldowned ability
@xavi_csyt9919
2 жыл бұрын
For the number 2 you can make a function to do period damage with some params and coroutine.wrap to that function, you can also add particles to the humanoidRootPart of the enemy, customized for every type of damage, for the number 3 do a new config value that has a explosin range and then when you attack to the enemy, damage all enemies in the range like when you do the find target function and a explosion particle to the humanoidRootPart of the enemy you attacked.
@xavi_csyt9919
2 жыл бұрын
The number 1 and number 4 IDK how to do that, probably if I try to do that I do something good
@akiprox7
Жыл бұрын
i agree wit hthe 4th one
@akiprox7
Жыл бұрын
with the*
This is why GnomeCode is my fav KZreadr, I've really been wanting to make a tower defense game, well here we have this man teaching us how to make it, because he wants too, I can't wait to see how to make boxes to get new towers and stuff
wow an hour video, I'm excited!
Hey GnomeCode, there is a slight problem with the first targeting system. Sometimes, if your character has a large range and the waypoints are spaced out, it works for a while but as soon as they start getting out of the range the targeting gets messed up. Its not always when it gets out of range either. A different guy had a similar problem where it would target the first enemy until a strong enemy got in the front. Once that happened, it would only target the strong enemy until the other enemies reached the next waypoint. Please fix this if you make another video. Also please add a inventory/shop and/or a level system. Thanks! Edit: If you see this please like/reply so GnomeCode has a better chance to see this.
@DonutArchives
2 жыл бұрын
Yeah I agree with the shop/loadout
@fexryourfriend
Жыл бұрын
I think you can make multiple waypoints on one path
@funnyguy5651
Жыл бұрын
@@fexryourfriend im late but yh u can make as many as u need
@_Berserker_777
Жыл бұрын
fix it by yourself dude
@funnyguy5651
Жыл бұрын
@@_Berserker_777 people already found a solution + its a roblox issue bro
Thank you for these amazing video! They make me learn and want to watch more of your videos!
The video we have all waited for.
honestly this dude needs more respect. the amount of hours he spends just to teach us how to script and build our own game is crazy.
So GnomeCode, you've done so much for us and i want to thank you for that, you have made my dream come true but i have one last request, could you please make a shop in the lobby that you can buy or summon units to go into the game with you?
Been following u for 10 days now so fast Keep up the good works
Good job man, cool series now i can finally make a tower defense game which has been my dream, thanks for it!
if youre having problems with the elevator not going down, make sure you look for any welds with the platform as part1 and delete them, cause thats why it wont go
@sirtoxic9802
Жыл бұрын
i cant find any welds but my elevator still wont go down pls help
@Xaguest20234
9 ай бұрын
@@sirtoxic9802add other platform part and if it has a weld then before deleting it disable the weld and remove the welded parts
The only thing that the game is probably missing is the tower shop, and after that you can fix certain bugs, such as one that causes enemies to collide with objects on the map, and if you can do something else like skins for the towers, or that when you win a map they can give you a special tower.
@kacper227
2 жыл бұрын
also special zombies
@Fun_stickman
2 жыл бұрын
@@kacper227 if u mean like defense, camo, flying, weakness, they are easy to make once you get ideas how.
@Fun_stickman
2 жыл бұрын
And yes I made them in my game myself :)
@kacper227
2 жыл бұрын
@@Fun_stickman can you give me an idea on how to make them? im not quite sure
@doinic09
2 жыл бұрын
@@kacper227 I think something in the config folder like for the mobs do "IsCamo" and for the towers do "seesCamo" and so on.
Thank you Gnomecode for this video, like jesus christ, I tried to make a lobby of my own but always failed until I saw your video which taught me and helped me how to make a lobby, thanks man!
I waited this too long, thx for send another tutorial, is so useful
This youtuber is underrated, he should get more attention for teaching us scripting in an easy and fun way
you should do a tower shop and tower inventory gui after this (or these 2 seperately if neccesary) and maybe later you can do a miniseries where you do smaller things like adding splash damage towers, farm towers, summoning enemies, hidden enemies and more small things like that. Edit: i caused an argument once again
@dacool_guyok
2 жыл бұрын
asking for too much my guy
@therealsinsane
2 жыл бұрын
@@dacool_guyok not asking, suggesting.
@dacool_guyok
2 жыл бұрын
@@therealsinsane suggesting too much
@therealsinsane
2 жыл бұрын
@@dacool_guyok i guess.
@RedCommando07
2 жыл бұрын
i agree. please, GnomeCode, expand the series with this kind of stuff!
thanks Gnomecode you've really teached me how to make elevators you've literally made a whole Tower defense game already!
I have been waiting for this less goooooo I hope the next tutorial is a tower shop
Thank you for making this gnomecode, i credited you in my game and people are playing it
@DevBlayz
2 жыл бұрын
whats the name of ur game im gonna go play it
Thank you GnomeCode for your teaching videos
Omg I just found out you did this! I’m definitely going to follow this tutorial and make a game! No matter how long
If you're having problems with the prismatics, just use tweening. its not that hard to learn, and it doesn't matter if the object is anchored or not (you should anchor it for the elevator though)
@winkytoot
Жыл бұрын
51:03 saving spot
@entityofanimations3952
Жыл бұрын
@@winkytoot Im having problems with the camera working whenever I go inside the elevator it doesn't lock onto the camera in elevator
@winkytoot
Жыл бұрын
@@entityofanimations3952 dont consult me ask gnomecode lol
@entityofanimations3952
Жыл бұрын
@@winkytoot he doesn’t respond
@winkytoot
Жыл бұрын
@@entityofanimations3952 ugh did you set camera mode to scriptable?
Hello GnomeCode! I've been following your TD tutorial series and I've been asking for some time! Will there be special towers that have different types of damage?(exmp.: splash damage, pierce, fire or maybe support) And will there be a tutorial where the owner and other Devs or admins have admin commands in game? I wish you'll make a tutorial for that. Have a great day everyone! :D
@Brother.Defense
2 жыл бұрын
also if you see this Gnomecode reply to me anytime! I'll be checking if you respond!
@cashier_a920
2 жыл бұрын
Hello I made an admin system! If you would like to hear it just reply back to me
@chikenman320
2 жыл бұрын
its easy to do after the experience you had with your game
@entityofanimations3952
Жыл бұрын
@@chikenman320 honestly I regret everything I just copied the script I forgot he actually tells us and teaches us now im going to have to go back to part 1 to get some scripting experience :(
THE BEST LITTERALY im teaching from you how to make tower defence game but i cant handle it bc no one wants to help me but your videos help me so thx for helping me!!!
This series was epic! I stopped at ep 9 but it still turned out amazing! Truly, thank you 😊
Make another video Pls that it would be farms that give cash
is it possible to make a tower unlocking system and inventory so you can equip the towers you want, whilst purchasing them, that could be a good update
@ScriptDogelol
2 жыл бұрын
hi fren again
@alfiee.8
2 жыл бұрын
Probably next to be fair…
@depderp3010
2 жыл бұрын
I can do it for money just give me ur discord
@EdionYT
Жыл бұрын
@@depderp3010 :/
YEEEEEEES THANK YOU GNOME YOU ARE THE BEST!!!
huge tysm i needed that
Sorry for asking so many questions, but since your ai Is the best one I need 1 thing and 1 thing only: Is there any way to implement a chase theme Into the ai? You can play a sound when the monster has spotted you, but since the monster repeatedly chases you, the music plays for 1 second before restarting. Is there any way you could do that?
@gamgamesplayer4506
2 жыл бұрын
Boolean
@ProgramadorZombie
5 ай бұрын
when the monster detected u play sound with :Play() , when is finished stop it with :Stop()
@ProgramadorZombie
5 ай бұрын
its the easiest way to me
thanks for the great videos can you try to show how to add more depth to the attack animations for the towers with multiple parts and growing parts, shrinking parts, etc. Also a story mode system for the maps would be great with progression unlocks.
FINALLY AFTER BEEN DAYS ITS FINALLY HERE NOW ALL WE NEED IS A SHOP
less goooo thanks gnome!
I have a question, is it possible to meke the elevators contain an already selected map? And to change the "map voting" into "mode voting"
@ArroBLX
2 жыл бұрын
Ohhh this is a good one, I have an idea on how to do that, I'll let you know when I'm done
@qxrzzz
2 күн бұрын
@@ArroBLX 2 years lol
Idea: make #21 on bosses (with stunning towers), towere that can freeze/stun enemies and hidden enemies (enemies that are invisible to low level towers.
@gamgamesplayer4506
2 жыл бұрын
These are very easy to make and with all the experience you got you should be able to do them, for example basically to do hidden all you need to do is add a stringvalue in the Mob, called hidden and put Yes or No in it, Now do the same in every tower and upgrade. In the tower Attack script you should now check if the Mob has hidden and if so if the tower has hidden, then you do the attack
@chikenman320
2 жыл бұрын
@@gamgamesplayer4506 also, should i just set the mob's walkspeed to 0 and bring it back after a while for stunning towers' attack or do the same thing but instead of changing walkspeed anchoring the mob?
@gamgamesplayer4506
2 жыл бұрын
@@chikenman320 change walkspeed, this way you can change it even for giant bosses, you can see for example that for most of the games the freezer can infact slow the biggest bosses
@chikenman320
2 жыл бұрын
@@gamgamesplayer4506 i realized how to do it with anchor without affecting bigger enemies. Put value "Freeze" in every mob and set it as you want. Then, let the towers check if the freeze is enabled or disabled. If it's disabled then the enemy will not be affected
@gamgamesplayer4506
2 жыл бұрын
@@chikenman320 yes but you can't just slow down big bosses a little like most games, just change the walkspeed
thanks gnome, this helped me with my tower defense game
tysm for the amazing tutorials :)
MY GOD, HELP, When i try teleport outside (go inside works) with multiple elevators, it teleports me to the same CFrame I've been stuck for an hour, and when trying to figure out what's happening with printing, it runs through all the elevators' teleportoutside block and tp's you to all, then ends up in the last one, plz help with this
@Polish-Phoenician
2 жыл бұрын
even when i renamed everything manually and changed the variable to having non and writing it out the whole thing (player.Character.PrimaryPart.CFrame = game.Workspace.Elevator1.TeleportOutside1.CFrame) still no luck
@cashier_a920
2 жыл бұрын
Im trying too
@ISOPL2
2 ай бұрын
pro tip: just look for gnomecode TD addon called "Multiple elevators exit fix"
Hi gnome, when you set a tower to have a way to fast cooldown such as 0.05 or something, they wont fire that fast is there a fix for that?
@Fun_stickman
2 жыл бұрын
yeah bro, lemme help, in ur tower module script at attack funcion I think, there is a "task.wait(0.1)" and because of it tower can attack at fastest speed of 0.1 I think. So just change it to 0.01 and it will be new max cooldown. I hope this helped. :)
@eugene9249
2 жыл бұрын
@@Fun_stickman this helped alot but i dont think its accurate still or maybe its probably just me being bad
@BoboGuyPro
Ай бұрын
@@eugene9249 replace intvalue to numbervalue
You are the best GnomeCode.
Thanks! this video is alot of help
Idea for Tower Defense Tutorial #21: How to make players get a badge when beat an event and events and a tower you need to have a badge for.
Great Video! But, for your next video do you think you could show an updated version of your other tutorials because some of the scripts for those don't work anymore:(
@doinic09
2 жыл бұрын
Like what one
ur amazing gnome code
Can you also make a system where you already choose te map instead of going in the teleported and then choosing because otherwise players can choose a map you don’t want!
@TheMokeyYT
2 жыл бұрын
Yea you should be able to choose the map you want in the lobby
@cashier_a920
2 жыл бұрын
you can do this but it requires Send Data or seperate games with slight changes
Hey Gnome are u gonna continue this series? If u continue it pls make shop thats the only thing to make the game complete
@FUCKWjNWj4Q3HeJsDildosJ_g
2 жыл бұрын
The way he hasn't been responding to comments like this means he sadly might not continue it. I really hopes he does tho because that's the only thing I need, and maybe a few other attack functions.
@FUCKWjNWj4Q3HeJsDildosJ_g
2 жыл бұрын
But you could always join his server and ask coders for help there!
@bobkerman8930
2 жыл бұрын
Yep
OMG NEW EPISODE!
Thx for the tutorial!
There's a problem I've been having once I've finished the video, depending on how many people go down the elevator with you and into a game is how many times the function "round.StartGame" runs. If you start a game with 5 players, the function round.StartGame will run 5 times, starting 5 different votings and producing 5 different maps inside of each other.
@Ikrytoupajan
Жыл бұрын
So I have the same problem and did you fix it?
can you do tower detection next and different types such as, splash damage, slowdown and hidden detection/flying
@ScriptDogelol
2 жыл бұрын
hi fren
@sheep_gaming2
2 жыл бұрын
its easy to do
@randomiguesslol
2 жыл бұрын
what about shops, challanges, modes?
@sheep_gaming2
2 жыл бұрын
@@randomiguesslol its hard but theresd always a way to do it
I will do something nobody can and will wait until this series ends and rewatch it all
Great tutorial!
I keep getting (403 forbidden and I have no idea why). How do i fix this
@cr4zysash682
7 ай бұрын
tell me if you found how
@Jamal.frl_13
6 ай бұрын
SAME
@MatthewGaming.
Ай бұрын
that happened to me, basically one or both of the games are not published and you need to publish it.
why does it say “HTTP 403 (forbidden)”?
@Jamal.frl_13
6 ай бұрын
SAME
@SoSaboQueNadaSebo
5 ай бұрын
💀
I am not making a tower defence game but this is going to help a lot for a horror game I’m making (which is a tad bit like flicker)
me sitting on my sofa: I don't know what to do *scrolls through phone* Gnomecode: I'll fix that tysm for uploading !!
An ok there TD video!!! You should make a lobby with a tower inventory next.
Ty man i appreciate it
Nice use of the shed
Hes bacckk
wow epic! my game looks so much different but litterally %90 of the base is your code lol thanks!
teleporting is cool🔥
good tutorial next video Shop, Inventory!
I like how you dont even need to make a tower defense game for this elevator
me when gnome code uploads
Ideas for future videos: - tower selection in lobby - make so u cant place towers next to each other - shop in lobby
I had to subscribe you are too good ❤🎉🎉❤❤❤❤❤❤
OMG TYYYY I REALLY NEED IT FOR MY DOORS GAME TYYSSSMMMM!!!!
But there's something left in this series, the towers shop, buy towers, skins and all that stuff, that we can use the money to buy more stuff, this is th only thing left in the series, but great you Gnome Code, Love your series
YES FINALYYYYYYYYYYYYYYY
gnome code thnk you for showing me
Please continue mafia city! I miss it, it is very entertaining and I love your commentary! I also never see anyone do anything subway system/ NYC related on Roblox, and it's where I live and I only see it in Hollywood movies. I also enjoy the idea of the game, I would love to play it!
Idea: for episode #21 Tower shop and tower inventory were you can select the towers you want to use in game once you bought them with coins you get from winning the game
@Tocte21
2 жыл бұрын
Thats a good idea
@depderp3010
2 жыл бұрын
If u can't do that on ur own don't make bad tower defense game tower shop is extremely simple
I got everything, tysm GnomeCode! You are the best script teacher. And i hope if you will make more videos then you will make farm tower (the tower what giving income every 13 second) and shop system with inventory, thx for all
@depderp3010
2 жыл бұрын
I can do that for money 💰 just give me ur discord
@percsaturn6311
11 ай бұрын
@@depderp3010 nobody paying you to that easy ahh scripting
@depderp3010
11 ай бұрын
@@percsaturn6311 clearly not #13 tower defense tutorial, upgrade tower tutorial you commented "how to fix this", how can it be an "easy ahh script" for u when u can't even follow a tutorial
and i love the help
29:34 saving my spot, ty.
Wow. i am suprised. did not expect you to upload. especialy this, nice tutorial and how do you know all of this stuff? at this point we're going to be able to make Tower Defense Simulator except worse but this is nice.
this help me a lot i really all year i play roblox i want to make a tower defens game
Amazing!
And you can buy towers UI and have them in your inventory
I have a question, is there will be Loadout changing (tower changing)
If possible, can you please publish the game so we can test it out!? (Loved the series Btw)
Hey, i have an issue where towers with a quick firerate move when they rotate, is it possible to anchor the tower while still making it be able to rotate? Like for example adding an anchired invisible part that the tower rotates on?
@depderp3010
2 жыл бұрын
Wtf that makes no sense having a part that a tower can rotate around
Hey gnomecode so, at rule 4 of the first script mine says Shaft is not a valid member of workspace “workspace” so how I fix this?
thank u :D
Awesome! also can u add a shop and skins for your towers?