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
 

Re: Is there a way to detect when a Player Jumps?

Previous Thread :: Next Thread 
Kignis is not online. Kignis
Joined: 15 May 2012
Total Posts: 28527
13 Oct 2014 02:03 AM
IF so how would that be possible

( don't give me exact complicated code if you don't want to)
Report Abuse
nacker is online. nacker
Joined: 06 Oct 2009
Total Posts: 6034
13 Oct 2014 03:34 AM
lol easy
if workspace[playernamehere].Humanoid.Jump==true then
print("jumping")
end
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
13 Oct 2014 05:49 AM
Mouse.KeyDown:connect(function(Key)
if Key:byte() == 32 then --I think 32 is the byte for spacebar, at least.
print("Jumped")
end
end)



a seal walked into a club
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
13 Oct 2014 12:33 PM
bump for other thread



a seal walked into a club
Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
13 Oct 2014 12:36 PM
lol easy
if workspace[playernamehere].Humanoid.Jump==true then
print("jumping")
end

that will not work because it will only run once, what you want is the event .Changed, or just loop until the player is in the air or something.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
13 Oct 2014 12:36 PM
humanoid.Jumping:connect(function()
print("GET BACK ON THE GROUND YOU FOOL YOU'LL KILL US ALL")
end)

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Jumping
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
13 Oct 2014 12:37 PM
or what scriptural said, preferably. I didn't think of that.



a seal walked into a club
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
13 Oct 2014 01:32 PM
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char['Humanoid'].Changed:connect(function()
if (char['Humanoid'].Jump = true) then
print(char.Name..' jumped.')
end
end)
end)
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
13 Oct 2014 01:32 PM
*if (char['Humanoid'].Jump == true) then

Sorroroorory my = key sticks :(((
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