|
| 12 Jun 2013 11:37 PM |
I want my button to print a simple command when I click it. I used this formula:
function onButtonClicked() print ("Hey") wait(5) print.Remove() end //~ Okay, this is extremely nooby and you're probably wondering why an '07er can't script... I haven't really been into scripting my entire Roblox career until now, thanks. |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 12 Jun 2013 11:40 PM |
You never called the function. Assuming the script is inside the button:
function onButtonClicked() print ("Hey") wait(5) print.Remove() end script.Parent.MouseButton1Click:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 11:41 PM |
| You my friend, are amazing!! This is my first script, I'm surprised you didn't find any errors! |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 11:42 PM |
| It still doesn't print anything. :/ |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 12 Jun 2013 11:46 PM |
| It prints for me... also, print.Remove() wont work. I don't think you can delete things in the output via scripting, but I could be wrong. |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 11:52 PM |
| I think that it is print:Remove()? I can't seem to get my script to even print though. :/ |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 12 Jun 2013 11:53 PM |
| How is your Gui set up? This may be the problem. |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 11:54 PM |
GuiMain TextButton Script. |
|
|
| Report Abuse |
|
|