Game Lobby Elevators - Tower Defense Tutorial #20
Vložit
- čas přidán 5. 08. 2024
- 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
Roblox wiki article on handling failed teleports (referenced from 56:36) onwards: developer.roblox.com/en-us/articles/Teleporting-Between-Places
E
Dude im kinda lazy to script can you plz make an paste bin on your scripts pls
@@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
@@palistar ;--;
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
agreed 🦵🤚😀✋🦵
ong, tysm gnomecode for inspiring me to learn scripting
Bruh the first video didn't work so I have to by myself and I'm almost done.
@@Dalighting you probally made a mistake its lot of code
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.
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.
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
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
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
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
Thank you for these amazing video!
They make me learn and want to watch more of your videos!
This is why GnomeCode is my fav CZcamsr, 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
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.
I have expected identifier when parsing expression, got "end" error in my Developer Console.C an you help?
@@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
@@gdude1351 but i dont have any red things or output errors
@@gdude1351 It solved. idk what i did
@@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.
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
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.
The number 1 and number 4 IDK how to do that, probably if I try to do that I do something good
i agree wit hthe 4th one
with the*
Good job man, cool series now i can finally make a tower defense game which has been my dream, thanks for it!
YESS ITS COMPLETE JUST WHAT I NEEED TY FOR MAKING THIS AFTER WAITING FOR SOOOOOOOOOOOOOOO LONG
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
Omg I just found out you did this! I’m definitely going to follow this tutorial and make a game! No matter how long
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.
Yeah I agree with the shop/loadout
I think you can make multiple waypoints on one path
@@fexryourfriend im late but yh u can make as many as u need
fix it by yourself dude
@@_Berserker_777 people already found a solution + its a roblox issue bro
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!
wow an hour video, I'm excited!
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.
Thank you for making this gnomecode, i credited you in my game and people are playing it
whats the name of ur game im gonna go play it
I have been waiting for this less goooooo
I hope the next tutorial is a tower shop
thanks Gnomecode you've really teached me how to make elevators you've literally made a whole Tower defense game already!
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
also if you see this Gnomecode reply to me anytime! I'll be checking if you respond!
Hello I made an admin system! If you would like to hear it just reply back to me
its easy to do after the experience you had with your game
@@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 :(
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?
Boolean
when the monster detected u play sound with :Play() , when is finished stop it with :Stop()
its the easiest way to me
This series is great 👍
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!!!
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
hi fren again
Probably next to be fair…
I can do it for money just give me ur discord
@@depderp3010 :/
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
i cant find any welds but my elevator still wont go down pls help
@@sirtoxic9802add other platform part and if it has a weld then before deleting it disable the weld and remove the welded parts
I waited this too long, thx for send another tutorial, is so useful
This series was epic! I stopped at ep 9 but it still turned out amazing! Truly, thank you 😊
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"
Ohhh this is a good one, I have an idea on how to do that, I'll let you know when I'm done
@@ArroBLX 2 years lol
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
asking for too much my guy
@@dacool_guyok not asking, suggesting.
@@therealsinsane suggesting too much
@@dacool_guyok i guess.
i agree. please, GnomeCode, expand the series with this kind of stuff!
Thank you GnomeCode for your teaching videos
thanks gnome, this helped me with my tower defense game
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.
also special zombies
@@kacper227 if u mean like defense, camo, flying, weakness, they are easy to make once you get ideas how.
And yes I made them in my game myself :)
@@Fun_stickman can you give me an idea on how to make them? im not quite sure
@@kacper227 I think something in the config folder like for the mobs do "IsCamo" and for the towers do "seesCamo" and so on.
This youtuber is underrated, he should get more attention for teaching us scripting in an easy and fun way
The video we have all waited for.
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
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
Im trying too
pro tip: just look for gnomecode TD addon called "Multiple elevators exit fix"
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)
51:03 saving spot
@@winkytoot Im having problems with the camera working whenever I go inside the elevator it doesn't lock onto the camera in elevator
@@entityofanimations3952 dont consult me ask gnomecode lol
@@winkytoot he doesn’t respond
@@entityofanimations3952 ugh did you set camera mode to scriptable?
Thanks! this video is alot of help
less goooo
thanks gnome!
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?
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. :)
@@Fun_stickman this helped alot but i dont think its accurate still or maybe its probably just me being bad
@@eugene9249 replace intvalue to numbervalue
Make another video
Pls that it would be farms that give cash
You are the best GnomeCode.
me sitting on my sofa: I don't know what to do *scrolls through phone*
Gnomecode: I'll fix that
tysm for uploading !!
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.
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.
So I have the same problem and did you fix it?
FINALLY AFTER BEEN DAYS ITS FINALLY HERE NOW ALL WE NEED IS A SHOP
An ok there TD video!!! You should make a lobby with a tower inventory next.
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:(
Like what one
Hey Gnome are u gonna continue this series? If u continue it pls make shop thats the only thing to make the game complete
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.
But you could always join his server and ask coders for help there!
Yep
huge tysm i needed that
I had to subscribe you are too good ❤🎉🎉❤❤❤❤❤❤
I keep getting (403 forbidden and I have no idea why). How do i fix this
tell me if you found how
SAME
that happened to me, basically one or both of the games are not published and you need to publish it.
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!
Yea you should be able to choose the map you want in the lobby
you can do this but it requires Send Data or seperate games with slight changes
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?
Great tutorial!
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.
why does it say “HTTP 403 (forbidden)”?
SAME
💀
wow epic! my game looks so much different but litterally %90 of the base is your code lol thanks!
Thx for the tutorial!
can you do tower detection next and different types such as, splash damage, slowdown and hidden detection/flying
hi fren
its easy to do
what about shops, challanges, modes?
@@randomiguesslol its hard but theresd always a way to do it
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.
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
@@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?
@@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
@@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
@@chikenman320 yes but you can't just slow down big bosses a little like most games, just change the walkspeed
Thank you for this but i have a problem at 15:54 , when ever the platform goes down hit gets a little push and then it wont go back up because the shaft is infront of it, please help
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.
Hi, on the tutorial on making a crouching system you did. When I made my own animation and did exactly what you said to do when I started the game. The walking animation(Rthro Animation) and my crawling animation were mixed together. Making some weird animation where the body was walking sideways with its arms flaying. I did it again all over again and still didn't work. Can you please tell me if you know how to fix this. Thank you!
I have a question, is there will be Loadout changing (tower changing)
ur amazing gnome code
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)
Ty man i appreciate it
I'm having a problem.
I made a model with three cat models. And published it into ROBLOX. But, i decided to try it out, i placed the model, deleted 2 of them, and only one was left. But when i tried the game to see the cat, the model was randomly spawning! (All of the three!) Is there a way to fix it? I need those models separatedly for a project!
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!
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?
Wtf that makes no sense having a part that a tower can rotate around
Hes bacckk
Hey gnome i have the problem that i already publish my gameplay game and idk how to add it to the lobby and when i try to add it said
Cannot Choose Start Places how do i fix this
I'm having trouble on video #7, after merging and adding animations, i couldn't eve place my tower down at all, nor was my mobs coming out. Help???
hey gnome, I am still stuck on episode 15. There is a bug where it won't change the value of the target like say, first, weak, or near. It just stays on first. Can anyone please help me fix this?
YES FINALYYYYYYYYYYYYYYY
So are you doing a tower equip system? Just asking.
OMG NEW EPISODE!
Anyone else have this problem where when you went in the elevator the screen/Title would set 1 player as 2. Another problem I have is the status not updating the text to "Waiting..." anyone know how to fix these problems
Gnomecode, i need help! I have an npc in a game that sometimes sits in a chair and starts playing a custom animation
however what ever i try whenever i put an animate script in the npc the sit anim overlaps with the custom anim
Hey are you going to only tds or will there be more in the future?
Love your series! But they animation for "Teddy" is not there, when i had to get them, and publish. And when will a new episode come out?
Guys how do you get animations to work for mobs and towers they won’t work what animation type do I put for each of them (for mob walk, tower idle and tower attack)
did u do magic?
bc ur coding is sooo understandifull and simple
keep it up. i finished mine! witch is a test not published
How to do i do the attached thing? I tried many times but it didn't work should I press a button to place the attachment?
gnomecode theres a bit of a problem, whenever I finish of the mobs the victory screen doesnt show but when i lose it shows the victory screen and game over screen please tell me how to fix this because I dont know how. p.s I did all of the codes correctly
hey, what if there are multiple elevators? is there a way to alter the code so there can be multiple?
Hey gnome in your next video can you fix the bug where when you kill a zombie it doesn’t immediately move onto the next one? it only applies to fast firerate towers like if you set it to 0.05 or 0.01
OMG TYYYY I REALLY NEED IT FOR MY DOORS GAME TYYSSSMMMM!!!!
Im having problems with the camera working whenever I go inside the elevator it doesn't lock onto the camera
Hi! I wanna make it so that you choose the map from the lobby. Like real TDS. For example every map is connected to one game. How would I do this?
gnome, i have a question.
What if instead, i want to make like servers instead of elevators itself? like servers that you create and choose a map(like Tower Heroes)
Yeah I want to do it aswell