Roblox Studio Tutorials - June 6, 2022

How to Make Collectible Objects




Download – Collect Object Script

How To – Make Collectible Objects

What’s up everyone welcome to buzzygames, my name is BuzzyGamesBeth and today I’ll be teaching you how to make collectible objects!

  • I’m just going to go ahead and spawn in a part. This could be like a wooden plank, and I want to be able to collect this anytime I click on the part.
  • Once you’re done changing the appearance of it, and its properties, go ahead and add a click detector inside of the part and a script.
  • Just two things inside of our part, we have a variable that references our part and another variable for the click detector. We have a function where anytime a player clicks on our part that we want to pick up, it’s going to turn that part into a tool. It will then change that tool’s name to wood.
  • We have another variable inside of our function which is going to clone the part again and change it into a handle because you can’t hold anything if there isn’t a handle inside of our tool.
  • Then it’s just going to go ahead and destroy the script inside of our tool so we won’t have multiple scripts inside of our inventory because that’s no good. Then it’s just going to go ahead and place it inside of the player’s workspace and then we’re going to go ahead and call our function so that we’re able to click on our part.