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

How to make a Basic crafting system?

1 answer

✓ Accepted answer

The question was not asked with much detail, but I think I can answer.

So lets say you have 2 gui boxes, and you need to place an item in each, then the item is crafted. Crafting would require an inventory system most likely, so you would have it take the items you used to craft away from your inventory. The items would also need to be drag and drop, so each item would need a "Clicked" event, then have it stay on your cursor when the event is activated, then to drop it have an event on the 2 crafting gui boxes that is if you have selected an item and you have clicked it. Then the item would be parented to the crafting gui box. Inside a script there would be all of the models that you craft. Then have if statements constantly running, and have them check for the two items, for example:

if guiBox1.stick == true and guiBox2.rock == true then
	inventory.sticks.Amount.Value = inventory.sticks.Amount.Value - 1
	inventory.rocks.Amount.Value = inventory.rocks.Amount.Value - 1
	ax = script.Ax:Clone()
	ax.Parent = inventory

Something like this should work. Again, this is mostly concepts, not actually giving scripts, why would I just give you a script!?!?!?!?!

lol, I was bored...

1 comment

0

Thank you :)

This discussion is preserved as it was. New answers, comments, and votes are closed.