Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Script? (Very Easy to Answer)

Asked by 8 years ago

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!

2
This is not a request site. You must put a attempt with your question. Also here's a list of sources to help you begin to script. https://scriptinghelpers.org/questions/9539/how-should-i-start-to-code#12184 M39a9am3R 3210 — 8y

2 answers

Log in to vote
2
Answered by 8 years ago

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

Ad
Log in to vote
1
Answered by 8 years ago

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.

Answer this question