andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 03 Mar 2012 02:58 PM |
Hello :), How Do i make this function start when you press a button? for example if you press R then it start?
gui = script.Parent
function Click() -- my function.. end
gui.MouseButton1Click:connect(Click) -- I think this should be changed in some way
~Andreas98~ |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:08 PM |
you need to access the mouse's KeyDown event to trigger key presses
he who has an itchy bum at night wakes up with a smelly finger in the morning. ~Confucius |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
| |
|
|
| 03 Mar 2012 03:10 PM |
you need to use a hack to get the mouse, i think, i think you need to use tools or something and force them into the character and get the mouse...
he who has an itchy bum at night wakes up with a smelly finger in the morning. ~Confucius |
|
|
| Report Abuse |
|
|
top1
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 115 |
|
|
| 03 Mar 2012 03:12 PM |
'hack' omfgwtf?!?!! How to get in awesome scripter :/
-su8 |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:14 PM |
hacking, isn't as bad as u think guys... >.> at least good hacking isn't (the hack i was explaining was a good hack) he who has an itchy bum at night wakes up with a smelly finger in the morning. ~Confucius |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 03 Mar 2012 03:23 PM |
| Ehh, I just need a hotkey to start a function in a simple script, I know it's possible, but how? |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:24 PM |
i've explained it as best i can. good luck.
he who has an itchy bum at night wakes up with a smelly finger in the morning. ~Confucius |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 03 Mar 2012 03:25 PM |
| I hope someone can do it better than you then.. Sorry. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:29 PM |
lol good luck!
he who has an itchy bum at night wakes up with a smelly finger in the morning. ~Confucius |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 03 Mar 2012 03:31 PM |
Can any experienced scripter help me please? :)
~Andreas98~ |
|
|
| Report Abuse |
|
|
top1
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 115 |
|
|
| 03 Mar 2012 03:31 PM |
Blue,you haven't answered my question
-su8 |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:35 PM |
top, bump your thread then :P
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
top1
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 115 |
|
|
| 03 Mar 2012 03:38 PM |
| I'm su8 and the question is on this thread @ my first reply |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 03 Mar 2012 03:39 PM |
| Can anyone find a solution to MY question? :) |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:41 PM |
@su8, translate your question in english, i cant understand it. :P
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
top1
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 115 |
|
|
| 03 Mar 2012 03:44 PM |
| The group is called 'Awesome scripter'... |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 03:48 PM |
o, i pmed soulstealler and he let me in :3
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 04:07 PM |
You need a tool/hopperbin, because those are the only ways you can retrieve a player's mouse. If it's a tool, first use the Equipped event, if it's a hopperbin, use the Selected event. Then use the KeyDown event. Here's an example using a HopperBin:
script.Parent.Selected:connect(function(mouse) mouse.KeyDown:connect(function(key) if key:lower() == "k" then print("You pressed the 'k' key!") end end) end)
You now have +10 INT from this post. Oh, by the way, Like an __AWESOME__ boss- |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 04:09 PM |
Read.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=48128353 |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2012 04:09 PM |
lol, my way doesn't need tool/hopperbin user activation :P
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
andreas98
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
|
| 04 Mar 2012 02:56 AM |
| I got my own script to work now. |
|
|
| Report Abuse |
|
|