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: give me UserInputService challenges

Previous Thread :: Next Thread 
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 Apr 2015 09:41 PM
idk

don't go easy on me
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Apr 2015 09:43 PM
Make a script that prints every script within 500 characters that does not print a copy of itself when you press a key.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
03 Apr 2015 09:44 PM
Use UIS to make a system exactly like Gunz: The Duel
https://www.youtube.com/watch?v=Op8FFgEOy6U
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2015 09:45 PM
OMG CODY YOU KNOW THAT GAME?????????!O J OGMQE O
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2015 09:46 PM
Gunz 2 sucks though, no k-style :[
I play private servers these days horoay
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
03 Apr 2015 09:54 PM
recreate mortal kombat lol
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
03 Apr 2015 09:56 PM
make ps3 controllers actually print what you press into userinutservice
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 Apr 2015 10:51 PM
@abs

mine does

--whole uis input began setup
print(inputObject.KeyCode)
--end

but u have to make sure your controller is properly hooked up, u need to install a special program so that it registers that u r trying to use it and not just charge it or something
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
03 Apr 2015 10:52 PM
Make a working TouchEnabled device to actually print ('Success') when someone swipes left.
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 Apr 2015 10:54 PM
'Use UIS to make a system exactly like Gunz: The Duel'

--whole userinputservice setup, input began etc.
if not gameProcessedEvent then
if inputObject.KeyCode == Enum.KeyCode.Slash then
for i = 1, 20 do
print('pow slash double slash! jump!')
wait()
end
end
end
--end
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Apr 2015 11:01 PM
I don't think there's a whole lot you can do with user input itself, but you can use it to make other things happen.

Allow the user to type keys and based on the ascii decimal of the letter, add it to a "total" int. Convert that integer to hexidecimal which you will use to change the color of GUI. You may need to divide the total if it gets too big.

Good luck!
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
03 Apr 2015 11:04 PM
I gave her a real challenge because I've tried multiple times using Enum and TouchSwipe events and never can get it to work...
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 Apr 2015 11:04 PM
local UIS = game:GetService('UserInputService')

UIS.TouchSwipe:connect(function(swipeDirection, numberOfTouches, gameProcessedEvent)
print('Success')
end)
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
03 Apr 2015 11:05 PM
Ok good.
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 Apr 2015 11:09 PM
Oh sorry I didn't read 'Swipes Left' one sec

UIS.TouchSwipe:connect(function(swipeDirection, numberOfTouches, gameProcessedEvent)
if swipeDirection == Enum.SwipeDirection.Left then
print('Success')
end
end)
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