of     2   
chevron_rightchevron_rightchevron_right

wow75
#60943769Wednesday, January 04, 2012 6:49 PM GMT

I want make a script so when you respawn you have natural high jumping, i personally have no idea how to do this, the gravity coil script looked to centered as a gear. This is all i have: function Respawn(hit) local equalizingForce = 236 / 1.2 local gravity = .50 hit.parent.Gravity = gravity end Thats literally all i can think of...
wow75
#60944520Wednesday, January 04, 2012 7:07 PM GMT

I know it's bad, but can i at least get a pointer?
Wowgnomes
#60945177Wednesday, January 04, 2012 7:21 PM GMT

[ Content Deleted ]
3lex33
#60946209Wednesday, January 04, 2012 7:41 PM GMT

Use bodyvelocity.
wow75
#60948504Wednesday, January 04, 2012 8:28 PM GMT

Is there a way to make it slow like the gravity coil?
RA2lover
#60950228Wednesday, January 04, 2012 8:56 PM GMT

Bodyforce with upwards vector being (PlayerMass)*9.81*15. i'll leave that and hat/gear mass detection for you to solve though.
wow75
#60950477Wednesday, January 04, 2012 9:00 PM GMT

I'll just add a get-rid-of-hats thing at the spawn. So where do i find Player mass? Or is it like Position, where it always varys?
3lex33
#60952875Wednesday, January 04, 2012 9:33 PM GMT

mass = x * y * z * 1. Sum up all player parts masses.
wow75
#60954166Wednesday, January 04, 2012 9:49 PM GMT

I looked through the player parts, icouldn't find mass...
robocorp
#60956079Wednesday, January 04, 2012 10:14 PM GMT

Here's the value of gravity: 196.125 per cubic stud I figured that out. Also, use BodyForce in the torso.I don't recommend using that total value for the push on the Y axis due to the fact that you will fly up indefinitely Use like grav*mass/0.50. That will half the gravity. "Every day I'm trollin you." ~mikeyman10ash
robocorp
#60956375Wednesday, January 04, 2012 10:18 PM GMT

you do X*Y*Z will return the mass of the part "Every day I'm trollin you." ~mikeyman10ash
TheNewScripter
#60956629Wednesday, January 04, 2012 10:21 PM GMT

@Wowgnomes LocalScripts have nothing to do with this... @wow57 You should use BodyForce for that. i.e.     local Part = Workspace.Part     local GravityOffset = 0.5     local PartMass = Part:GetMass()          local BodyForce = Instance.new("BodyForce", Part)     BodyForce.force = Vector3.new(0, PartMass * GravityOffset, 0)     -- This will basically make it have half the normal gravity it would normally have. ×TNS×
TheNewScripter
#60956704Wednesday, January 04, 2012 10:22 PM GMT

Oops. Meant wow75, not wow57... Stupid dyslexia... :< ×TNS×
wow75
#60957545Wednesday, January 04, 2012 10:32 PM GMT

Thanks guys, but now my mom wants me off the CPU, so cya later.
TheNewScripter
#60960841Wednesday, January 04, 2012 11:10 PM GMT

Oops... I messed up my formula.     local Part = Workspace.Part     local GravityOffset = 0.5 -- 1 = Full, no gravity / 0 = Normal gravity     local PartMass = Part:GetMass()     local BodyForce = Instance.new("BodyForce", Part)     BodyForce.force = Vector3.new(0, PartMass * (196.1 * GravityOffset), 0)     -- This will basically make it have half the normal gravity it would normally have. Btw, CPU is something within the computer, not the actual computer it self... ×Dyslexic Scripter at Work×
Bubby4j
#60964477Wednesday, January 04, 2012 11:50 PM GMT

You sit on the CPU? The CPU would overheat and burn you!
nate890
#60966042Thursday, January 05, 2012 12:07 AM GMT

gravity in roblox is 196.2 ­
skipperguy12
#60970140Thursday, January 05, 2012 12:56 AM GMT

bub, ikr? xD
[rfa#hidefromsearch]
#60970287Thursday, January 05, 2012 12:58 AM GMT

[rfa#hidefromsearch]
nate890
#60970408Thursday, January 05, 2012 12:59 AM GMT

Quenty, you can always make air using bodyforce. ­
xvgigakid
#60971157Thursday, January 05, 2012 1:09 AM GMT

@TheNewScripter BodyForce isnt a good idea if he wants to reduce gravity. BodyForce moves the Object on its Local Axis BodyVelocity moves it on the game's axis.
xvgigakid
#60971341Thursday, January 05, 2012 1:11 AM GMT

@Quenty game.Lighting.WindDirection = Vector3.new(0,1,0.3) game.Lighting.WindForce = Vector3.new(9001,9001,9001) If only.... But for now what I really want is LocalLighting >:O
TheNewScripter
#60972935Thursday, January 05, 2012 1:30 AM GMT

@xvg It actually goes based of game axis... I know because I use it in one of my tools... ×TNS×
TheNewScripter
#60973023Thursday, January 05, 2012 1:32 AM GMT

Actually... I take that back. You are right, I forgot I have some sort of formula to fix it... I think... I don't know. I do know that I use that formula for the projectile, and it works... ×TNS×
robocorp
#60976462Thursday, January 05, 2012 2:16 AM GMT

@nate I spent all day calculating gravity once (I had nothing to do) and My calculations are correct, check my above post. "Every day I'm trollin you." ~mikeyman10ash

    of     2   
chevron_rightchevron_rightchevron_right