Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

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

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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!

0
Before making something make sure you have the knowledge to do so. BlackOrange3343 2676 — 5y
Ad

Answer this question