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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 12:36 AM
[ Content Deleted ]
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
06 Feb 2014 12:53 AM
If keyUp is allowed, yes.
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 09:52 AM
[ Content Deleted ]
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
06 Feb 2014 10:28 AM
Do you mean that you want "a" to trigger a different key press? If this is the case then just make a function that makes all the keys to other ones via a table, of sorts.

map = {"a" = "b", "b" = "c", "c" = d}

function MapKey(key)
return map(key)
end

Easy enough, right?
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 04:18 PM
[ Content Deleted ]
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 05:17 PM
[ Content Deleted ]
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Feb 2014 05:53 PM
rewrite the character moving system and don't bind a
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 06:47 PM
[ Content Deleted ]
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
06 Feb 2014 06:59 PM
What do you expect? You ask for theory, you get theory. You post script, you get modified script.
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Feb 2014 07:18 PM
[ Content Deleted ]
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
06 Feb 2014 07:49 PM
You could destroy the Controllers in the ControllersService and see if that works.
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
07 Feb 2014 09:34 AM
What do you mean it didn't work? Do you want to stop certain keys from firing the event(s) or treat certain keys as different ones?

The key re-mapping will work perfectly fine, it won't allow you to stop the events from firing in the first place though.

What you need to do is exchange the key that you receive from the events for the mapped ones using the function I mentioned before: (Also I made some typos when I wrote it, I'd assumed you'd be able to work them out...)

map = {a = "b", b = "c", c = "d"}

function MapKey(key)
return map[key]
end

mouse.KeyDown:connect(function(key)
print(MapKey(key))
end)

It works for me :)
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
07 Feb 2014 09:50 AM
[ Content Deleted ]
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