Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Make An Inventory Script Or Gui In Lua? Thats able to drop items

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...?

3 comments

0

Im not requesting a script just an example to lead me on the right path

0

roblox has a default backpack(inventory) system, which when tweaked makes a easy steal for the functions u described

0

in fact u dont really need to tweak it at all

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:

  1. Client and Server Communication (For Filtering Enabled)
  2. Lot's of GUI scripting a. MouseButton1Down b. Maybe MouseButton2Down
  3. UserInputService
  4. Lot's of loops a. For loop (Looping through tables)
  5. :GetChildren()
  6. :GetDescendants()
  7. Tables and Arrays
  8. 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

0

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.