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 » Building Helpers
Home Search
 

Re: How do you make your game aoutomatically make everyone have lower gravity than usual?

Previous Thread :: Next Thread 
bwGHOST is not online. bwGHOST
Joined: 20 Dec 2010
Total Posts: 47
26 Oct 2011 10:58 AM
How do you make your game aoutomatically make everyone have lower gravity than usual? Please help, im making a game and i dont know how to do eet!
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
26 Oct 2011 12:11 PM
Untested. But try this, it should work

local PercentGravity = 0.75
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
local a = Instance.new("BodyVelocity",char.Torso)
a.maxForce = Vector3.new(2800*PercentGravity,2800*PercentGravity,2800*PercentGravity)
end) end)
Report Abuse
GuessWhoGhostIsIt is not online. GuessWhoGhostIsIt
Joined: 17 Sep 2011
Total Posts: 554
26 Oct 2011 12:51 PM
Will not this just create an empty bodyvelocity, meaning that it will be harder to jump and fall down?
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
26 Oct 2011 01:17 PM
This better?

local PercentGravity = 0.75
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
local a = Instance.new("BodyVelocity",char.Torso)
a.velocity = Vector3.new(0,1,0)
a.maxForce = Vector3.new(0,2800*PercentGravity,0)
end) end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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