How do i script a button to dispense an item? i just started scripting and i don't know how to do this! Please Help!
Now THIS IS NOT A REQUEST SITE So I will not give you the full code. I will however give you some help with the function you will need, Put in the block inside a Script
.
function onClicked() --CODE HERE end script.Parent.ClickDetector.MouseClick:connect(onClicked)
You can learn how to do the rest here: wiki.roblox.com
Well, since this isn't a request site, I will only point you to where you need to go. Go here: wiki.roblox.com. Then, search: Instance.new.