|
| 16 May 2017 03:19 PM |
function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.Tab then pcall(function() StarterGui:SetCore('TopbarEnabled', true) end) end end game:GetService('UserInputService').InputBegan:connect(onKeyPress)
What do you put if you want it to be any given key including the mouse?
#Sodaghost13 |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 03:19 PM |
Remove the if?
Do you know what you are doing? |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 03:22 PM |
Yeah, I've tried that but I remember doing it once by accident with the if but I can't remember how I did it.
#Sodaghost13 |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 03:23 PM |
| My original answer is incorrect... |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 03:24 PM |
Read:
wiki.roblox.com/index.php?title=API:Class/UserInputService
wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan
And you should know how to do what you want to do |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 03:25 PM |
Yet again, I've resolved in making that mistake again! Another script was disabled temporarily which couldn't call it :/
This had no point lol
#Sodaghost13 |
|
|
| Report Abuse |
|
|