How to create a Shop - Tower Defense Tutorial #21
After much confusion and delay, I've returned to finish off the series. In this episode I walk you through the whole process of building a shop GUI and how to script it. In the next episode, we'll look at how to use Datastores to save player data between playthroughs.
DISCORD ► / discord
TWITCH ► / gnomecode
TWITTER ► / gnomecoderblx
TIMESTAMPS ►
0:00 Intro
1:12 Creating GUI
16:32 Showing off new towers
17:30 TowerShop module
20:18 Creating LocalScript
22:45 Creating prompt
24:02 Toggle gui on/off
26:32 Displaying items in shop
38:13 Setting item status
43:26 Ordering by price
44:12 Interacting with items
58:56 Outro
Пікірлер: 610
Probably the most dedicated dev I have ever seen, keep up the amazing work.
When the world needed him most, he returned
@nv_ae
2 жыл бұрын
why is this comment everywhere
@fredygarcia8796
2 жыл бұрын
Yes
@quackywhackityphillyb.3005
2 жыл бұрын
@@nv_ae When the youtube comment section needs it most, it apears.
@minipumking
2 жыл бұрын
Absolutely
@Clash_Studio1
2 жыл бұрын
Tower/player data does not exist, what me do?
Hey GnomeCode! Great video and tutorial in itself! This ones been a long time coming, try not to take too many suggestions and overwhelm yourself! Go with what your comfortable with, have an awesome one gnome, remember to take breaks!
@GamerGamerYT918
2 жыл бұрын
That right!
YOOOO TYSM. I've been waiting for this episode of your series!
Yes a new episode! I have been waiting for this for a very long time.
Oh thank goodness, I thought the series finished at episode 20 and the was still so much I wanted to learn. Thank goodness!
@Ernad1
2 жыл бұрын
im pretty sure theres only like one more episode after 22..
@muffinmcdeez54321
2 күн бұрын
@@Ernad122’s the last one
@Ernad1
2 күн бұрын
@@muffinmcdeez54321 that comment is an entire year old, before the series was completed
This is amazing bro! I just hope that the next episode we got an way of getting the lobby currency and data stores and the shop working for the game!
I am so happy you have returned gnomecode, you have made my day 😀
This man has taught me a lot in this series amazing, best dev on KZread!
this is helping me more than expected with my td game, good work gnome!
As someone who’s never scripted before, I’ve got to say this series so far has taught me so much. Your explanations are very simple, thanks to you I mostly know what functions and tables are! I know some people are only here for the scripts, but you’ve genuinely made me learn so much. I’m not even kidding, I probably know more about Roblox Lua because of you than I know algebra from my math classes.
@trisidektos2404
2 жыл бұрын
exactly bro, he's a legend we didn't deserve, but still got
@Clash_Studio1
2 жыл бұрын
Tower/player data does not exist, what me do?
@vimic0
Жыл бұрын
I make my tower defense game by myself and watch these tutorials if i dont know how to add something
@FrostedOven
Жыл бұрын
I don't learn shit in my math classes
@M4x_M3m3z
Жыл бұрын
@@FrostedOven Lol same
I've seen a lot of dev all over youtube... And your are definitly the BEST one i've ever seen. Your videos are easy to understand and just amazing. Thank you for everything you do :)
OMG I WAITED FOR THIS VIDEO SO MUCH!
Yay. The series is back!!!!!!!
this man deserved a star code
Hey GnomeCode, I’m new on you KZread channel and I love your work. I just want to say thanks for your explanations.
@GnomeCode
2 жыл бұрын
Thank you, that's great to hear
@doinic09
2 жыл бұрын
@@GnomeCode Gnomecode, there is a problem with the targeting system. For the first targeting it hits enemies in alphabetical order instead of first to last.
@hamsterking_346
6 ай бұрын
@@doinic09 same
Holy crap you are good at scripting no matter what you do good job 👍
It's been a while but you're back now 😊
Yay I was hoping for more Videos for this series
Yay, new episode!
I was starting to loose motivation on making the tower defense game,until i saw this. YESSSSSSSSS
i thought the series is finished;-; now we have to wait for it AGAIN
Thanks for your tutorials! It is really cool and needed)
Welcome back
With school out its time to crack down on my tds work. Thanks gnome
NO WAY NEW EPISODE OMG OMG OMG OMG 2MONTHS FOR THIS SO WORTH IT!!!!!!!!!!!!!!
THE COMEBACK
Love you gnomecode! Keep it up :D
YEEEEEES! NEW TUTORIAL!
today is my birthday :D am so happy you gnome posted video on my birthday
Many people thank you for these tutorials
I KNEW YOU GONNA MAKE THIS TYSM
and also, ur tutorial about tds is so useful, my tds getting better :D
Return of the king
YESSS I LOVE YOU GNOME CODE
hi i just have a question i made a model made a couple of stuff and made upgare skins and when i go in game to test it the slot just does not pop up can u help?
Gnomecode is back! Everyone celebrate!
When I click the image buttons, it always warn that player or tower doesn't exist, what should I do?
Gnome at 23:46 time i didnt have the interact shop button can you show how to fix it?
Hello I used this tutorial and for some players the shop isnt showing up. Any idea why?
He has returned!
YOOO HIIII I LOVE YOUR EPISODES!
can you separate the store where only to buy heroes and the inventory where to dress them I want to do so in my Pls
Hey, on the 3rd tutorial, the animations aren't working and i wanted to ask if i could have some help
You make great tutorials. I watch them even though I don't need too lol
how do i make the shop like when i buy a tower that i will have it in the game when im playing?
I followed everything in this tutorial and I was so excited to upload this game but there is an error which I cannot fix. I tried my best but I can’t. So when I play the game and get teleported then my towers that I have selected are not loading in the game. Please help 😢
How do I make a banner summons system that switches randomly every hour?
Can someone help me, for some reason, only some of my towers have pictures, but i added the pictures in for every tower.
YEESSS IVE NEEDED THIS
Cool GnomeCode, you returned. YAEY
Is there a possible way you make a video to make custom admins commands for the tower defense game.
Hi! I did everything exactly the same, but my problem is that when the 3rd wave starts, the game stops working, that is, the zombies stop going
the king returnsssss
Man I see you working on Trap shop in teddy I don't know how long this was here on the studio but if it is still on work I am all for .
Am still on episode 12 but thank you so much for doing this videos
Ok the glitch im having a problem with is that for me my towers show up, and sometimes it does for other people. But a lot of the time it just shows the money and tower limit in the shop, and no towers are displayed. Can someone help me?
I was scripting and almost done but then i lost conection to it and nothing in the shop worked anymore and it made me so stressed like can someone help me out??
hi another error, when i try to place a tower it says attempt to call a nil value
this is very cool, but why does the script that we created in the last part simply not exist in this one? I'm talking about PlayerAdded, which should be in the ServerScriptService
Gnome for some reason everytime I do this it keep get warn Tower/Player Data don't exist and no other error in the output hope you replied and help me
Question do you have a release date for Teddy chapter 5
ah yes gnomecode the man who connects everything in existance into a function also good job gnomecode this is the best damn tutorial i've seen :O
@ThatBeenuxGuy
4 ай бұрын
LocalfunctionAlexrosecomment()
@skittle74
Күн бұрын
@@ThatBeenuxGuy true
Finally, After 2 month it finally Return
somehow it comes orange line under playerdata when i use it in updateItems
Yes we need this
Guys i made a Shop icon but everytime i want to load the shop i get the gui but the towers wont load can anyone help?
What about a infinite mode or different type enemies like airs speed power people and how about a item shop that changes and percentages to get them?
57:28 for some reason it says (for me) that tower does not exist every time, but I checked the code and it was just as yours. Any ideas why its not working? Please help! Edit: Nevermind, I fixed it already. I mispelled the names of towers hehe...
im a scripter, and i dont use youtube that much for scripting, but this tutorial is amazing! in the main game, you can add towers without having to script ANYTHING, because the scripts are prepared for any amount of towers! i think this tutorial is AMAZING for beginners, and i will recommend this to my friends who want to make tower defense games!
@therock6878
8 ай бұрын
Hey if your a Scripter can u explain to me how to make a tower seasonal becuase I can’t figure it out
@Aetherbeen
7 ай бұрын
@@therock6878 You cant figure it out because you dont have to figure it out, thats how easy it is
@GoatedTsbPlayer
16 күн бұрын
Except the fact it be like 100 years outdated
@winkytoot
15 күн бұрын
@@GoatedTsbPlayer this comment was FROM A YEAR AGO I fixed the problem already, and then the person I was making this game for (who keep in mind wasn't even paying me I was doing this for free) deleted the game, called it trash and blocked me
Finally he's back!!!!
This Is Absolutely Amazing I Cant Wait For Episode #22 This Will Be Amazing For My Game
@aceplayzgames3608
2 жыл бұрын
He privated episode 22 for some reason
@JuniDevs
2 жыл бұрын
@@aceplayzgames3608 He said he didn't like it, I never got to finish it but hopefully when he remakes it, it'll be good.
Thanks for the Series Just a question when is the next GameNight
My elevators arent working, they keep teleporting to the wrong one and the same one every time, and every time you rejoin its randomized again
How do you make multiple shops in one lobby
I did what u did but nothing seems to be working I’m still stuck in part 1
What screen recorder do you do use? It's amazing.
Even tho I know how most of the script works I still learn something thanks
Lets goo #21 completed
how do you code the rocker?
why is my scrolling frame i broken? i can,t scroll and its too big
Congrats on 100k subs
@GnomeCode
6 ай бұрын
Thanks!
@crystlwolf4743
6 ай бұрын
@@GnomeCodecan you make an updated series for the new code?
My image doesn't load, what should I do? 34:58
i cant update my shop server and idk i mean i cant change the default tower or anything
someone help im stuck on episode 3 cuz my walk animation wont load
How do you make towers event only
can you show us how can we do random shop with rare,gold and mytich chance pls
after the next vid, may you please do a torturial on how to make a mode selector? Like a easy mode, normal mode, hard mode and stuff like that, and then maybe PVP as the finishing one?
Is any one getting a issue that if you try to equip a tower it buys it twice and takes away your money? Edit: I didn't have the player in the 'getItemStatus' function on the server.
Hey gnomecode, if people were to customize the game ourselves, how would we make our own models and stuff for the game? I’d use your character rigging tutorial because it works well for me, but I only used that for enemies. What about towers and custom attacks for them?
@NotPuzzledAtAll
Жыл бұрын
he made a vid on that
Great tutorial! When your finished, could you make a series on how to make a game like outlaster on roblox? Theres basically no tutorials on that front
he finally came back
Thanks gnome
Hello gnomecode, i suggest you to make a series about how to make a RTS game, it would be really cool!
hey, can u rec video about data saving and creating modes that gives badge
Gnomecode instead of a shop I want to make a summoning units feature like a bunch of those anime tds can you make a video?
I love u channel bro, thank for all help
Can you do random unit system by use ing point
how to i make normal shop only money? + idle towers wiev
yooooo hes backkkkkkk