Reeling in a rope

I have no clue what category this would go in, because I don’t know if its a problem with the RopeContraint or the code

I have a fishing rod that reels in the rope with this code:

while RopeConstraint.Length > 0 do
			RopeConstraint.Length -= 2
			wait()
		end

The only problem with this is that the rope pulls you forward as it’s coming back. What can I do to fix this?

1 Like

Have you tried using the .WinchEnabled property? It will slowly (or quickly, depending on how you customise the winch properties) pull in/out from I believe Attachment0. You can find out more about the winch properties here:

1 Like

This fixed it, but when reeling it in, the buoy is spinning around like crazy. is there a way to make it smoother?

1 Like

Honestly “it pulls you forward” actually sorta resembles real life how you like gotta counterbalance the fish you’re trying to reel in, so maybe it would be a cool mechanic that you actually needed to like counter balance the fish’s weight by walking backwards, but it’s just an idea

2 Likes

turn down the mass (custom physical properties → density) of whatever is on the other end of the rope

1 Like

That sounds like a good idea. I could keep the regular for when you reel in no fish, and have the other way done when you actually catch a fish

1 Like

One problem I did notice in testing was if you try and run away from the bobber, it pulls you down and you phase through the floor.

1 Like

I suppose you could try and change the WinchTarget value so that it doesn’t reel in all the way, forcing the buoy to remain down. It’s quite hard to think of what to do in situations like these when dealing with the physics engine.

1 Like