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: How to detect when a player is trying to jump on mobile...

Previous Thread :: Next Thread 
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:00 AM

With user input service, I tried the Humanoid.Jumping event and it does not work on mobile.

So other methods preferably with user input service would be appreciated right now, thank you.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
22 Jul 2016 11:01 AM
there's something called JumpRequest for mobile i think


Add 13,000 posts
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:01 AM
Interesting I will try looking that up.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:03 AM
I looked up jump request on wiki, and it says it is fired when the space bar is pressed so I don't think it would work with mobile.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
22 Jul 2016 11:04 AM
someone said it does

try at least


Add 13,000 posts
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:07 AM

I will try I guess, skeptical if it will actually work though.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:12 AM
Well I tried it on desktop and it is randomly firing for some reason...
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:15 AM

I should probably describe what I am trying to do,

Right now I am working on detecting when a player is trying to jump out of a seat, if they do destroy the weld and stop an animation.

I think it is randomly firing cause the player itself without any input is already trying to stand up, therefore sending a jump request.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:21 AM
Also I stand corrected cause it does work on mobile, although it still experiences the same problem that I mentioned on my other post.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:24 AM

Is there a way to detect if their actually tapping on the jump button?

So some type of event?
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 11:30 AM

If you want to see what I mean by it is randomly firing go into the game and into the cafe, there you can test it by sitting in the seats.
https://www.roblox.com/games/395143175/Neutronium-City

Be sure to sit multiple times, cause some times it does not randomly fire the event.
Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
22 Jul 2016 12:28 PM
theres a jump property in the humanoid, and whenever a player taps the space bar or the jump button on mobile, it sets it to true then false
so you can make a loop that checks when the jump is true

or im totally wrong and tried to be smart
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 12:40 PM
I think your right although that sounds really inefficient.
Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
22 Jul 2016 12:41 PM
o
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
22 Jul 2016 12:42 PM
Changed event.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 12:53 PM
@Kord I could try that I guess.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 12:54 PM
@Kodr sorry.
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 01:02 PM
What arguments can I use in a changed event on the humanoid to see if it is the jump bool that has changed?
Report Abuse
StrongNuclear is not online. StrongNuclear
Joined: 05 Mar 2016
Total Posts: 963
22 Jul 2016 01:03 PM
I figured it out.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
22 Jul 2016 01:04 PM
doesn't *really* matter just do this:

humanoid.Changed:connect(function()
if humanoid.Jump then
print 'jumped!'
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