generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Function Hotkey's?

Previous Thread :: Next Thread 
andreas98 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
03 Mar 2012 03:08 PM
Yeah I know, but how?
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. 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 is not online. top1
Joined: 05 Mar 2009
Total Posts: 115
03 Mar 2012 03:31 PM
Blue,you haven't answered my question

-su8
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
03 Mar 2012 03:35 PM
top, bump your thread then :P

~would you like some butter with your late toast?
Report Abuse
top1 is not online. 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 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
03 Mar 2012 03:39 PM
Can anyone find a solution to MY question? :)
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. top1
Joined: 05 Mar 2009
Total Posts: 115
03 Mar 2012 03:44 PM
The group is called 'Awesome scripter'...
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
03 Mar 2012 04:09 PM
Read.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=48128353
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
04 Mar 2012 02:56 AM
I got my own script to work now.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image