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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|