Yo, saw this video originally the day it was made, and it helped me so much with my game. Never really got to say thank you, and this worked so much better than any other shop system I’ve ever ever seen.
@Hematophobia3 ай бұрын
13:21 local Player = game:GetService("players").LocalPlayer local ReplicatedStorage = game:GetService("ReplicatedStorage") local PurchaseEvent = ReplicatedStorage:WaitForChild("PurchaseEvent") local Main = script.Parent local Purchaseables = Main:WaitForChild("Purchaseables") for i, weapon in pairs(Purchaseables:GetChildren()) do weapon.MouseButton1Click:Connect(function() PurchaseEvent:FireServer(weapon.Name) end) end i hope this will help
@DsYT-h9t25 күн бұрын
it doesent work
@JackRouhan Жыл бұрын
Guys if u have trouble with the part that says ungroup in serverscriptstorage it actually means put it in serverscriptservice
@YellowXI10 ай бұрын
so do i put in there?
@TheBoxingGuy88610 ай бұрын
By the way how do you make the NPC interact able?@@YellowXI
@whoareyounumbertwo3 ай бұрын
@@TheBoxingGuy886 insert an attachment into the humanoid root part in your npc, then insert a proximity prompt into that attachment.
@Lushi_Hold Жыл бұрын
Thank you so much for the free model! it saved alot of my time thanks!
@tinselturtle2266 Жыл бұрын
this was really helpful in making my first good roblox game, Thanks!
@Pblx Жыл бұрын
If anyone's wondering how to add more items into the shop this explanation should work. 1. Put the ShopGUI back into the StarterGUI and enable it. This is so that you can add more buttons for the new items. 2. Next, you want to find the "Purchaseables" folder and copy the Sword button and put it in said folder. One big thing here is that you need to rename the Sword button name to something different, for my case I used "Guns," you can change the name to whatever, but you will have to come back to this again in another step. 3. After this you want to copy and paste another folder into the weapon folders found in replicated storage, there should be one folder named "Sword," copy it and put the new one in the weapons folder, make sure to rename this otherwise it'll think you're using the same weapon. this is ESSENTIAL that you name it to the same folder that holds your weapons. 4. Should work, but make sure to test with the console to make sure the scripts work. If this explanation wasn't clear you can ping me and I will get back to you. If you're wondering how to make a different shop GUI each time, it gets a bit more complex, but it does follow some similar rules as the first one. (If you haven't read the first one I strongly recommend you do to at least understand this concept.) Follow the steps for the first one before you attempt this. 1. You just copy the dealer NPC and put the ShopGUI inside of StarterGUI (HumanoidRootPart) Add new weapons to each iteration of your dealer, it can be whatever, you can remove weapons as well if you want, just make sure it's inside the Purchaseables folder (inside ShopGUI) of this copied dealer NPC.
@indexfish2 Жыл бұрын
WHATS SHOPGUI?!?!
@Pblx Жыл бұрын
@@indexfish2 shop gui can be found inside the humanoid root part of the dealer npc model, you paste it into startergui in the bottom of the explorer and then enable it in the properties.
@indexfish2 Жыл бұрын
@@Pblx Oh i didn’t know that you would respond, Thanks!
@Pblx Жыл бұрын
@@campeoncito88 can you elaborate
@R7ksy Жыл бұрын
Can you explain in less detail?
@wibmakt5459 Жыл бұрын
Thanks for this tutorial! I have no prior experience with LUA, and just following along helped a lot in understanding how the language works in the Roblox Editor.
@yellow6713 Жыл бұрын
you LEGEND! great tutorial!
@Never_Gio Жыл бұрын
This is the only one I could find like this, thank you so much!!
@Metrollingnorobux10 ай бұрын
You need a tool save system and a leaderboard save system.. It can be found in the toolbox
@epixcface Жыл бұрын
this is actually useful
@Moltentic Жыл бұрын
tysm keep up the good work
@vruh28648 ай бұрын
Thanks man, everything works good. Keep it up, your helping a lot of people!
@Svintus_gulpster9 ай бұрын
please help me, i done the exact same thing but my character will stop moving for ever after talking to npc once
@icys_dino6 ай бұрын
dude same!
@randombrandon3085 Жыл бұрын
Bro every time I watch your tutorials Roblox studio acts up and the way you get mad at it is funny 😂
@roshmcdosh75716 ай бұрын
Great Tutorial! It helped me so much! No offense, but when you said GUI (gooey), it got me laughing😂
@jackgreig58006 ай бұрын
Thanks so much! Helped me ENORMOUSLY on my Fighting Game Project
@Gaba.z.garnkiem6 күн бұрын
at first it didn't work but it turns out i forgot to anchor the humanoidrootpart 😃😃👍👍 btw great tutorial!
@diamon87 Жыл бұрын
thx :) you helped me a lot
@silverxpanda58527 ай бұрын
Awesome! Thank you
@ChrisGLPS Жыл бұрын
Thanks for the tutorial btw I'm developing a game so I need a script where the NPCs give you the money if you as a player kills with any weapons! could you help me with a next tutorial video? I'm really great!!!
@HanzalaAzizHanzala2 ай бұрын
I made my game thanks to this video and this guy. I will be sure to sub!!!
@gianduenas7717 ай бұрын
----Handler Script----- local Prompt = script.Parent local Attachment = Prompt.Parent Prompt.Triggered:Connect(function(player) if not player.PlayerGui:FindFirstChild("ShopGUI") then local clonedUI = Attachment.ShopGUI:Clone() clonedUI.Parent = player.PlayerGui clonedUI.Enabled = true local Humanoid = player.Character:FindFirstChild("Humanoid") if Humanoid then Humanoid.WalkSpeed = 0 Humanoid.JumpPower = 0 end end end) Hope this helps!
@CROFINd4 ай бұрын
what about purchaseables hander
@Scary_Sea_Emperor3 ай бұрын
thanks dude ur a real pal
@jakequake164719 күн бұрын
It still doesn’t work, any tips?
@The_DigitalMan7 күн бұрын
thank you too much broooo i lav you
@Le0yaboiii Жыл бұрын
I downloaded the model and the exit button doesnt work in the GUI
@witch_doctor13679 ай бұрын
TYSM!!! IT REALLY HELPED MY ON MY GAME!!
@topowitdamilk Жыл бұрын
hey if anyone can help can you tell me why the the gui isnt showing up when i interact with him
@topowitdamilk Жыл бұрын
heres what it says: playerGui is not a valid member of Player "Players.Gregerzz"
@navneetsharma49399 ай бұрын
Hey! Everything works! Amazing tutorial! Can you guide me on how I can put soem5hing else instead of a sword for shop?
@50mcdonalds9 ай бұрын
EYYY TIME TO CREATE LEXINGTON AND CONCORD AT HOME👍🏻👍🏻👍🏻👍🏻👍🏻😃😃😃😃😃😃
@KSMILE5085 ай бұрын
could you suggest how I could alter this so that the currency used to purchase the items is called "Wins" instead? I have my own leaderstats made and im trying to tie it into mine
@JellyNews Жыл бұрын
idk what i did wrong i put all the coding and everything was right but for some reason its not working
@manglewena4342Ай бұрын
thx fir the video man i will use it
@zeniter-w3x7 ай бұрын
Hello! But if I want to implement the mechanics of buying not just one thing, but several, do I need to write some additional scripts? if so, which ones and where?
@Stick1083 Жыл бұрын
script- local Prompt = script.Parent local Attatchment = Prompt.Parent Prompt.Triggered:Connect(function(player if not player.playergui:FindFirstChild("ShopGui") then local ClonedUI = Attachment.ShopGUI:clone() clonedUI.parent = player.PlayerGui clonedUI.enabled = true local humanoid = player.Character:FindFirstChild("humanoid") if humanoid then humanoid.walkspeed = 0 humanoid.JumpPower = 0 end end end)
@YoussefElGhabzouli Жыл бұрын
bro that has faults in it bro
@Aerospinnalot7 ай бұрын
its trash it has alot of problems
@PurplemanReal1 Жыл бұрын
it is so funny that he calls the GUI the word gooey
@CHRIS_COOLZАй бұрын
thx a lot dude
@BloxHotelsNews3 ай бұрын
yooo thank you soooo much!!
@agx_rust9 ай бұрын
It won't let me close the GUI, I wated the video over 3 times and have the exact same things but still wont close.
@kainer72567 ай бұрын
same happened to me bro did u fix it or nah? i cant even purchase it eitherr
@PaleoPeekStudios5 ай бұрын
@@kainer7256SAME BRO I NEED SERIOUS HELP WITH THIS SCRIPTING STUFF
@NetherCubeGames4 ай бұрын
@@kainer7256 same
@itsjam644 ай бұрын
same
@yeetgodYTgrind5 ай бұрын
is there any way to link this to a quest system or different currency system
@Mindset.Achieve Жыл бұрын
The shop is great, and is smooth, but can you make another tutorial on how to make the shop hold more items?
@familyfun7250 Жыл бұрын
how @GlitchyRoblox101
@BuldsOffice Жыл бұрын
Just copy and paste the GUI and Change the price and the name and item.
@Lord_Nick211 ай бұрын
@@BuldsOffice no worked
@Scoobster78 Жыл бұрын
Congratulations dude! You reached 400 subs!
@monkeydeveloper Жыл бұрын
Thank you so much!
@william_dr33murr55 Жыл бұрын
how do you change the cash into something else like kills?
@mrmouse1243 Жыл бұрын
its not working for me :/ pls help, the gui is not working even thought I have added all the coding
@ItsMeDuckyFace10 ай бұрын
same
@cheekcys6 ай бұрын
same for me
@sharkoblox5 ай бұрын
local Prompt = script.Parent local Attachment = Prompt.Parent Prompt.Triggered:Connect(function(player) if not player.PlayerGui:FindFirstChild("ShopGUI") then local clonedUI = Attachment.ShopGUI:Clone() clonedUI.Parent = player.PlayerGui clonedUI.Enabled = true local Humanoid = player.Character:FindFirstChild("Humanoid") if Humanoid then Humanoid.WalkSpeed = 0 Humanoid.JumpPower = 0 end end end) (make sure to name he Script Handler and the shopgui ShopGUI
@Jan-m9n5t3 ай бұрын
under his video is dealer model. get it, insert it into your game and follow the instructions
@Gaba.z.garnkiem6 күн бұрын
did you anchored the humanoidrootpart?
@coffinisdumb Жыл бұрын
hey monkeydeveloper, I have a good question. Instead of it taking away that currency in the leaderstats. What if i want it to take away my in game datastore money? that doesnt involve using leaderstats?
@vadwvea7153 Жыл бұрын
you can change it, where it says Cash.value everytime change it to (your currency).value
@heeeelphelpmeeeee11 ай бұрын
how do i make it be able to have other dealers that sell different things
@Lemmiewinks1210 ай бұрын
So instead of tools I'm using scripts so when you click buy it gives you a script and you click a button to activate it, but whenever you die or leave the game and come back you no longer have it. What would I have to fix in order to allow myself and others to keep the things they buy without having to by them again. Please reply soon. :)
@GnarpEnthusiast Жыл бұрын
i have coins on the ground and when you pick them up it adds one coin. How do i change the needed currency to coins
@Ezeworldezekiel5 ай бұрын
Whenever in the script it says "Cash" rename it to "Coins" or "Coin" Sorry if im late
@TemX13 Жыл бұрын
19:35 do i need to put the name of the type of cash i have in my game like if i have currency euro i need to put the word euro instead of cash?
@BREEZE.Z Жыл бұрын
I acctually wanna add an image to the shop UI, which would be pretty much more intresting, so please do tell me how do i do it. Thank you!
@Ezeworldezekiel5 ай бұрын
Maybe add a decal on it with a picture on the decal? Maybe that could work!
@Coolman2284 Жыл бұрын
Hi thanks for the tutorial but instead of the money system i want make it into robux is there way to do that thanks!
@SigmaSimulatorProductions3 ай бұрын
I already have a leaderstat called Coins how do I make it so it takes from that and not a whole new leaderstat
@MattoxSuttle Жыл бұрын
PLEASE MAKE A VIDEO TO SHOW HOW TO ADD MORE ITEMS!!! I'm making a zombie game and I'm struggling to figure out how to add the sword AND a chez burger to heal. please BLESS ME WITH YOUR WISDOM
@MrFashionedDeveloper7 ай бұрын
Go to the 'weapons' folder and put tools there, thank me later.
@YoussefElGhabzouli Жыл бұрын
i cant follow on 13:11 someone help
@TaperGuy Жыл бұрын
Do you have to replace anything in the script because it’s not working
@BallyTeamGames7 күн бұрын
yo bro can u please say how to put other stuff in the shop i am litle bit dumb for that:D (PLEASE)
@jjthedreamer9387 Жыл бұрын
Yo this is a great tutorial, I'm going well and I'm almost finished with it, Close button isn't working tho, any possible reasons as to why?
@viphuhd8267 ай бұрын
you need to script it, too
@CoolCatKitty001Ай бұрын
@@viphuhd826 how
@thatgeekguymemes Жыл бұрын
How do i make it so when you buy a sword Like that it says already owned and can’t buy multiple times?
@monkeydeveloper Жыл бұрын
Check to see if it's in their inventory or their character if it is don't make them able to buy it again
@thebluevoid1857 Жыл бұрын
@@monkeydeveloper I did it but it has a bug when the player equip the same item they can just buy it again. Can you make me a script to prevent this?
@ULTIMATE_YT_CHANNEL4 ай бұрын
Can I make it cost an item? And if so how do I do that?
@SpyLegacyАй бұрын
It doesnt work for me i dont know why, when i interact, it doesnt show my GUI's even tho i coded it to be enabled can someone help me
@LILELI2TRIM Жыл бұрын
so I can do a npc for hellcat and trackhawks?
@thebabyboss7598 Жыл бұрын
It didnt work me the GUI didnt pop up
@DsYT-h9t25 күн бұрын
did you check the name for the Screen gui?
@raiden12342Ай бұрын
uh dude how to make it if i buy more than 3 more items 1 of the item gets replaced
@Greek-nz8 ай бұрын
How do we get that moon animated thnng
@Free_Assets_For_Your_Needs Жыл бұрын
Can you do one that has money generate on the ground in specific zones so players can pick it up and a few minutes later it respawns?
@dylanisaking Жыл бұрын
just to make while task.wait() loop and in the task.wait add math.random(minrespawntime, maxrespawntime) and just put the code in the while loop, not that hard.
@JacksonHagar11 ай бұрын
when i try to open the shop it takes me to the script it says parent is not a valid member of ScreenGui "ShopGui" pls help
@PixelLaughsGaming7 ай бұрын
Bro how do you have those plugins? I have none
@lukatarashvili99726 ай бұрын
this tutoreal really help me in my game tnx❤
@DomYses7 ай бұрын
is this gonan work on R6?
@Whinter12 ай бұрын
i wrote everything from Local handler nothing worked
@filipobradovic92213 ай бұрын
My close button doesn't work in my output says Destroy is not valid member of ScreenGui, can anyone help?
@PokiDokiSun6 ай бұрын
Can i get some help on this pls? the background blur effect isn't working, the part where you code your avatar to not move while being in the shop GUI hasn't worked either... i have not finished the tutorial yet but i can gather that some other things are not going to work as well. I dunno if it's just me or the code lol.
@JayRock-lj1nv6 ай бұрын
I can help you have discord?
@vursit8 ай бұрын
the first sccrript didnt workk for me andi did everything right?
@ehsansayeqal23194 ай бұрын
i need help bro can u do it for me pls
@Keujiko Жыл бұрын
Does this save intervory
@CircuitCodes6 ай бұрын
What if i wanna add dialogue before it opens the shop
@Enough. Жыл бұрын
So I’m trying to open the gui and it doesn’t want to open the gui and it doesn’t display any errors
@RodsterInk6 ай бұрын
Very cool swagleos
@CircuitCodes5 ай бұрын
What if i wanna make something that says the player dosent have enough money
@Dry_water105 ай бұрын
w vvid bro helped alot !!!
@Ezeworldezekiel5 ай бұрын
it doesnt let me purchase stuff how do i fix that thanks if u reply
@Kruzeei5 ай бұрын
helpful. thanks
@tamdabum5415Ай бұрын
is there an error because mine doesn't work
@akigaming49928 ай бұрын
When i open frame the litle thing for shop isn't showing
@The_RandomBestie9 ай бұрын
I tried to make the shop GUI to show up but it never did, I need help or you can remake this video.
@KSMILE5085 ай бұрын
Is there a way to fix the blur staying on screen after the menu dissapears?
@ThaGreatChemist2 ай бұрын
you can remove the blur
@TheOfficialCoughingBaby Жыл бұрын
Please someone answer this question. Does this include a money system?
@glitchyy9058CHAMKDKFNBAB Жыл бұрын
I can’t buy anything for some reason and when I click the close button it just gets rid of the blur, great tutorial but it didn’t work for me and I don’t know why
@PaleoPeekStudios5 ай бұрын
Same but none of the buttons in the shop gui work and can’t close or purchase anything
@glitchyy9058CHAMKDKFNBAB5 ай бұрын
@@PaleoPeekStudios I just quit Roblox studio to do actual games because the people who make the tutorials are smarter
@RandomEditzAe8 ай бұрын
i dont think theres any shop systems with data saving and where u can buy only one of each thing
@KemaniZanco Жыл бұрын
i done it right and everything im sure but its not working when i hold down E?
@BrokeRoblooxian4 ай бұрын
Do the tools Save?
@whoareyounumbertwo3 ай бұрын
no and to get it to save its kinda complex
@BrokeRoblooxian3 ай бұрын
@@whoareyounumbertwo thanks
@RAYGHIMIRE_25 Жыл бұрын
bro these helped so much I am making a anime game
@SincerelyTaterTot6 ай бұрын
It won’t open, I’ve copied the script exactly multiple times. I have no idea what could be wrong
@Lertgotyoi Жыл бұрын
It’s saying unknown global prompt what do I do?
@ANG3L_tt6 ай бұрын
Same
@NATOSSSSS020 Жыл бұрын
but i want than that you get after a minut or more money again. please help
@zak-tu6wi Жыл бұрын
how do i do it so the player gradually gains cash overtime/per kill?
@monkeydeveloper Жыл бұрын
Like cash per kill?
@zak-tu6wi Жыл бұрын
@@monkeydeveloper Yea that would be so much cooler.
@thealexid8530 Жыл бұрын
Yeah this would be nice
@shrexyisreal Жыл бұрын
@@monkeydeveloper hey i have a question. when i sprint while the shop is open it breaks the walkspeed and jumppower stuff.
@Lebronismysunshine12345 ай бұрын
how do we add more idems
@yousefgaming910 Жыл бұрын
how can i add deferent weapons?
@MineVerse-h7t Жыл бұрын
how do you add another weapon
@_tekk. Жыл бұрын
I can’t get the menu to pop up when I press e 😭
@sin_ister Жыл бұрын
how do you make more buttons that give you different weapons? such as a knife that also costs 10 cash
@neslihananbarc71408 ай бұрын
its not working in hadlear ı ride the everything true but ı 7. hadlear is saying WRONG pls help