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: changing a players jump height

Previous Thread :: Next Thread 
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
14 Jul 2014 10:14 AM
How would someone go about doing this?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
14 Jul 2014 10:32 AM
Add BodyPosition to the torso of the character, that changes the gravity of a player, the higher you put the force(at the y value), the higher the character will jump.
Report Abuse
kevincatssing is not online. kevincatssing
Joined: 29 Aug 2011
Total Posts: 15763
14 Jul 2014 10:36 AM
Woah, thanks harry :D
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
14 Jul 2014 10:37 AM
No problem :)
Report Abuse
kevincatssing is not online. kevincatssing
Joined: 29 Aug 2011
Total Posts: 15763
14 Jul 2014 10:39 AM
what would happen if I added value to x and or z?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
14 Jul 2014 10:40 AM
The player would move to the front or to the sides, depends on how your character is rotated.
Report Abuse
kevincatssing is not online. kevincatssing
Joined: 29 Aug 2011
Total Posts: 15763
14 Jul 2014 10:41 AM
Hmm, would it move automatically without me moving?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
14 Jul 2014 10:48 AM
Yeah, but the force would be higher when you jump, because as long as you stand, friction will keep you from moving(unless the force is set really high). For jumping the same thing: if you put the force too high, you will start flying from the moment you spawned and you would keep going. Also, you will fall slower, to prevent this you could put a script like this somewhere:

humanoid.Jumped:connect(function()
local bp = Instance.new("BodyPosition",humanoid.Parent.Torso)
--Put properties here
wait(put (more or less) the time you will be in the air in here)
bp:remove()
end)

this script makes sure the bodyposition only works when the player jumps, so it doesn't fall slower or something.
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
14 Jul 2014 12:26 PM
So, likewise, when you pt the number lower, the player won't jump as high?
Im trying to make a realistic jump. Not the moon jump our players do now.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
14 Jul 2014 12:27 PM
Nu, not bodyposition, bodyforce or bodythrust

<^V>
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
14 Jul 2014 12:30 PM
Yeah it would be better to use BodyForce
And if you want to know the amount of force used to push your player down, you would have to use :GetMass() on every part of the character(body parts, hats, tools) and add them together, and then multiply that sum by Roblox's gravity, 196.2
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
14 Jul 2014 01:05 PM
Alright. I made one, and it's working beautifully.
Thanks guys!
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