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 » Scripters
Home Search
 

Disable certain keys?

Previous Thread :: Next Thread 
kamontae123 is not online. kamontae123
Joined: 02 Apr 2008
Total Posts: 136
23 Apr 2016 09:46 PM
I would like to disable one or more keys then re-able them after a period of time but I am not sure about how to disable a players keys.

I tried game:GetService("ControllerService"):ClearAllChildren()
But that didn't work for me.

do anybody know?
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
23 Apr 2016 10:00 PM

local controls = {}

for i,v in pairs(game:GetService("ControllerService")) do
table.insert(controls,v)
v.Parent = nil
end


Instance.new("BodyThrust",SenseiWarrior).position = CFrame.new(SenseiWarrior,YourGirlsDMs)
Report Abuse
kamontae123 is not online. kamontae123
Joined: 02 Apr 2008
Total Posts: 136
23 Apr 2016 10:26 PM
I will have to define which keys I want disabled in the 'local controls' table right?


Do I have to store the KeyDown function with these letters?
local controls = {Q, W, E}
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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