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
 

Re: This is the negative update - KeyDown/KeyUp

Previous Thread :: Next Thread 
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
12 Aug 2015 07:24 PM
The negative update is that you changed the KeyDown/KeyUp to the function "IsKeyDown" and "GetKeysPressed". You use UserInputService where its slightly harder than the normal KeyDown/Up.

All I do is to use while wait() do end and I have to loop it until there is an key down.

How is this negative/difference to this new update:
- Changing it makes us have to use the longest line.
- Mouse is easy and simple to use.
- You do not need to loop to use the mouse.
- Very long to do
- This looping isn't perfectly accurate, the mouse uses very accurate using event.

Change that back.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
12 Aug 2015 07:28 PM
idiot
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
12 Aug 2015 07:34 PM
k then, enjoy living in the past of roblox. no cool mobile/gamepad support for you, m8

UIS/CAS > KeyDown/KeyUp

Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
12 Aug 2015 07:36 PM
also GetKeysPreesed dont work.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
12 Aug 2015 07:37 PM
You clearly have no actual idea how UserInputService/ContextActionService work.

local CAS = game:GetService("ContextActionService")

function reloadGun(name, state, input)
if state == Enum.UserInputState then --when input begins like when a button is pressed
--code here
end
end

CAS:BindAction("ReloadGun", reloadGun, true, Enum.KeyCode.R, Enum.KeyCode.ButtonX)
--Binds this function to the R key
--The X button on controllers
--And creates a touch button for touch devices(the third input)
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
12 Aug 2015 07:37 PM
GetKeysPressed does work, but like I said you're far too incompetent to understand how to use it.
Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
12 Aug 2015 07:37 PM
Also I did not mention to delete UserInputService.
Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
12 Aug 2015 07:39 PM
If I used roblox studio everytime why I did not see this change?

ROBLOX wiki says this is deprecated and shows me nothing about these 2 services.

But thanks.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
12 Aug 2015 07:40 PM
we never said you did mention that, OP

just learn to get user input the much better way:

http://wiki.roblox.com/index.php?title=Keyboard_input
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
12 Aug 2015 07:41 PM
"ROBLOX wiki says this is deprecated and shows me nothing about these 2 services."

>http://wiki.roblox.com/index.php?title=Keyboard_input
>http://wiki.roblox.com/index.php?title=ContextActionService_tutorial
>http://wiki.roblox.com/index.php?title=API:Class/UserInputService
>http://wiki.roblox.com/index.php?title=API:Class/InputObject
>http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
12 Aug 2015 07:42 PM
Wiki says nothing about it? What?

http://wiki.roblox.com/index.php?title=Keyboard_input
http://wiki.roblox.com/index.php?title=Gamepad_input
http://wiki.roblox.com/index.php?title=ContextActionService_Tutorial
Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
12 Aug 2015 07:44 PM
The page "KeyDown"!

Bye leaving this thread dead.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
12 Aug 2015 07:46 PM
That's why there is a search bar.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
12 Aug 2015 07:49 PM
OP, yudothis
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:35 PM
local uis = game:GetService("UserInputService")

uis.InputBegan:connect(function(input, event)
if event then return end
if input.KeyCode == Enum.KeyCode.E then
print("Pressing E")
end
end)


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
12 Aug 2015 09:17 PM
Guys, wubby is like an extreme zealot of KeyDown

He protects the depcereitaed method like it's his god
i don't get it
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
12 Aug 2015 09:18 PM
he probably uses remove lmao
Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
17 Aug 2015 10:36 PM
Fat fr00bs still posting in my dead thread.
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
17 Aug 2015 10:39 PM
I just want to point out - you no longer have to do super cumbersome ways to get a table of all keys pressed simultaneously. It's super easy now. :]
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
17 Aug 2015 10:40 PM
You're the negative update.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Aug 2015 10:45 PM
OOOOOOOOOO @OP YOU GOT ROASTED


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Garybyte is not online. Garybyte
Joined: 24 Jul 2014
Total Posts: 789
17 Aug 2015 10:48 PM
10/10, top notch, quality sh et post.
Report Abuse
wubby301 is not online. wubby301
Joined: 15 May 2010
Total Posts: 1907
18 Aug 2015 06:35 PM
Ok take your time and post bad things.

ILL start!

BLAHHB:AKBALJLBHBHABLHLHABBA

FAT FR00BS THIS IS NAEGATIVE UODATES
Report Abuse
Garybyte is not online. Garybyte
Joined: 24 Jul 2014
Total Posts: 789
18 Aug 2015 07:52 PM
Op "Still posting in dead thread"

*op posts"

Op is og hyopcrite
Report Abuse
BluesteelBoyz is not online. BluesteelBoyz
Joined: 15 Feb 2012
Total Posts: 1841
18 Aug 2015 08:03 PM
Does OP stand for owner post?
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