Need Help Making Pickup System

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I Need To Make Pickup System

  1. What is the issue? Include screenshots / videos if possible!

First Thing : I Make A Script That if Player Triggered The Proximity Prompt Give Him A Tool I Call The Function and Put The Player Parameters and That Actually Consists of (Backpack,Character,PickupHandle )

After That I Make ModuleScript And Make Function

But The issue Is : When I Print My Parameters That Actually is unordered

Output

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Probably the error is that you’re using : instead of .
image

By the way, if you want to check how many items does the backpack have, instead of doing this which makes no sense, you should check its length with length operator.
image

if #Backpack >= 6 then
	warn("Too many items")
end
1 Like

Thanks So Much You are true :slightly_smiling_face:

I Need To Call The Function with . not :