I want to make an inventory gui thats able to store items that are clicked on of the ground and also be able to drop the item after clicking on it in the inventory how do i go about this, i am unsure where to start...?
How Do I Make An Inventory Script Or Gui In Lua? Thats able to drop items
1 answer
Hello! I'm BlackOrange3343 and I'll be helping today!
To start off, what you are going to be looking at are the following:
- Client and Server Communication (For Filtering Enabled)
- Lot's of GUI scripting a.
MouseButton1Downb. MaybeMouseButton2DownUserInputService- Lot's of loops a. For loop (Looping through tables)
:GetChildren():GetDescendants()- Tables and Arrays
CFrame
I can't link anything as of right now since I'm in school but these are the basics you'll need for a simple system. For a more complex system, you'll need even more knowledge. Now I can't guide you on what to do because that would be way too long. What you can do is research the following topics and see if you can put the puzzle pieces together.
For the dropping items, you'd probably right click (MouseButton2Down) and then spawn the item in front of you or something like that using CFrame.
Hopefully this helped sorry for the lack of information. I'm at school.
Best of luck developer!
1 comment
Before making something make sure you have the knowledge to do so.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Im not requesting a script just an example to lead me on the right path
roblox has a default backpack(inventory) system, which when tweaked makes a easy steal for the functions u described
in fact u dont really need to tweak it at all