Line Force firing the wrong direction?

  1. What do you want to achieve? Keep it simple and clear!
    I want the model to go to a specific part of the map.

  2. What is the issue? Include screenshots / videos if possible!
    it’s going in a totally different direction than where it’s supposed to go.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I looked all over the developer hub on Rocket Propulsion but found nothing and I found other people having the same problem but never got answered.

This is the only script that modifies something about the Rocket Propulsion.

local rocketpropulsion = game.Workspace[game.ReplicatedStorage.CurrentMap.Value].Rescue.RocketPropulsion
	rocketpropulsion.Target = game.Workspace[game.ReplicatedStorage.CurrentMap.Value].EndPosition    
		game.Workspace[game.ReplicatedStorage.CurrentMap.Value].Rescue.RocketPropulsion:Fire()

Properties of Rocket Propulsion
image

I don’t know much about anything related to body movers as this is my first time ever using them and as you can see it’s not working.

image

Imagine the red line as the place its supposed to go, instead its going on the blue line which is the complete opposite way its supposed to go.

I didnt even know this body mover existed, thanks for that :slight_smile:

The roblox doc says:

https://developer.roblox.com/en-us/api-reference/class/RocketPropulsion

that it needs a target to reach. Is your target the right variable and have you moved it to where you want the rocket to reach?

That being said, its deprecated and they suggest using LineForce, just fyi,

I just tinkered with the LineForce and it works like a charm :slight_smile:

2 Likes

Yeah, it’s just a combination of Body Position and Body Gyro which I both need so I decided to use Rocket Propulsion.

Anyways yes it’s the right target variable but it doesn’t reach it. The rocket in question moves in the wrong direction at a very slow speed and then stops.

I’ll switch to line force to see if it does anything and ill report back if it works. Thanks for telling me its deprecated, didnt see that.

1 Like

Heads up, when using LineForce you need attachments to each object.

1 Like

Sadly it just did the same thing as the rocket propulsion did. Here’s a video. The end position is in the middle of the map just for reference. I’ll report back because I think I know a fix.

Is there another body mover anywhere else in that model?

And forgive me for asking, but is your target part anchored?

Another thing i was thinking, increase your Magnitude, it might be a heavy model and the force is just not enough.

Nope, just the line force.

Here’s the modified version of the code, I don’t know if enabled is the best way of going with this though. Also yes the end position is anchored. Ill test out the increasing magnitude right now.

local lineforce = game.Workspace[game.ReplicatedStorage.CurrentMap.Value].Rescue.LineForce
lineforce.Enabled = true
1 Like

I don’t see a problem with the enabled, given what i saw in the video.

Another thought, try placing the target very close and see if issue persists, then move further and further away… i cant tell from your video how close or far away these points are.

1 Like

I tested the magnitude change but the heil just kept swinging around making no attempt to go to the end position, I tested moved the points but again no attempt to go to the end position but just kept swinging around.

The part of your code after workspace…what is that in the brackets?

I have a random map system in my game and that’s just the name of the map so it can find it in the workspace.

1 Like

Have u tried to just put the heli and target in a baseplate and test it there? Im running out of troubleshooting ideas lol.

1 Like

For some reason, instead of going to the end position, it repels it? I seriously don’t know anymore and I’m not good with anything Physics-related.

1 Like

Ive been using the body movers for awhile and i dont experience that issue… if u want to PM me the file i can try it out but i make no promises lol.

1 Like

Yeah ill send you the template in a second

1 Like

Never mind, I got it to work. I found out inverse square law makes it repel, Well fixed it now and it works shown in the video, if you want, ill still send you the template.

1 Like

Thats awesome! Well done… mental note on inverse square.

No, no need for file thanks.

1 Like