Jump to content

Help Please with Scrap button


Slimwaffle
 Share

Recommended Posts

I am working on a scrap button for my game. I really need help with a problem. I attach my generic item script to my two crates. and my move item script to my player. Then in the scene for testing purposes I designate the small crate to give 4 brick and the large crate to give 30. But something is going wrong and it will give me the same amount both times. I want this to act independently. And I really need help. Because I don't want to have to create a new script for every single item I ever add to the game over its lifespan. I will attach a video and both my scripts so everyone can understand better.

ItemMove.lua

GenericItem.lua

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...