How to prevent rocket propulsion from moving in the Y axis?
Asked by
6 years ago Edited 6 years ago
01 | local RP = Instance.new( "RocketPropulsion" ) |
02 | RP.Parent = monster.HumanoidRootPart |
06 | if list [ i ] .Name = = "Point" and list [ i ] .order.Value = = 2 then |
08 | local part 1 = monster.HumanoidRootPart |
10 | part 1. BodyGyro.CFrame = part 2. CFrame |
13 | local bforce = Instance.new( "BodyForce" ,monster.HumanoidRootPart) - body force |
15 | local blist = monster:GetChildren() |
17 | maxMass = maxMass + blist [ i ] :GetMass() |
19 | bforce.Force = Vector 3. new( 0 ,workspace.Gravity * maxMass, 0 ) |
So i'm using rocket propulsion to make a model move but when slowed to a certain amount it starts to sink so I decided body force was the best option to cancel the effects of gravity(Tested by removing RP:Fire() model isn't affected by gravity)
But the problem is the rocket propulsion is overriding the body force so it still sinks when slowed to a certain amount.
So the question is: Is there a way to either cancel rocket propulsion force in the Y-Axis or to have bodyforce move to certain points on the map?