So I have a sleigh which is scripted so when you come up to it and hold e on a proximity prompt, a rope instance is created and now its attached to your right hand. However, when im pulling it, it can become upside down. I want it to only rotate on the x and y axis when im moving it. I don’t want to use a heartbeat because that will just be a waste of the servers time, my game will lag and there will be at most 18 sleighs as well. I tried using the plane constraint, but that doesn’t achieve what I want it to. How should I solve this?
Have you considered attaching a cylindrical constraint between the rope and the hand? You can read more about it here, maybe this will help:
https://developer.roblox.com/en-us/api-reference/class/CylindricalConstraint
Hey, I’ll try that if my solution im working on rn will work, it is using a align orientation constraint. thanks though!
if that doesnt work you can try and weld a high density, collision off part at the bottom of the boat. That’ll replicate a rocking boat too depending on both how heavy and how far under you place the weight.
--------Edit-------
Idk why i thought you were using a boat… my bad
I actually have boats in the game. I tried using that technique you used but for a base part, which is already in the center/bottom of the boat model, so its center of balance was good. However, this caused some weird glitches, it took an incredible amount of torque to move it, and it didn’t have the sliding effect I wanted when its drifting in the ocean. So instead of using that, I kept it at the same weight and when ever it flipped over, it would automatically rotate it back to normal. The difference between the boat and the sleigh however, is that its ridiculously easy to flip over, moving it flips it over, etc. So that’s why I don’t want to take a approach where I wait for it to flip. I MUST make it never flip.
Have you tried the same technique on the sleigh? Although instead of under it i would make it a heave weight in the center?
I misunderstood your first post sorry… you want the sleigh to move on only two axis? I would use the deprecated BodyGyro to keep it stabilized on these two axes… this is how i operate all my boats.
Body gyro is basically just align orientation constraint. Im taking long because I just ate dinner, but Im sure what I can do is make it so the align orientation uses a primary axis of parallel or perpendicular to a part with 0 z, which means it won’t be able to change its z axis but it would be able to move around y or z. I just realized that I only want my part to move in the y axis, cus it can also flip over in the x axis, so im going to make 2 align orientation constraints, 1 for the z and one for the x.
I am mistaken, the primary axis of the constraint means that what ever is attached to it, it will only be able to rotate on its own in one axis, the other 2 will be for the part that’s keeping the original other 2 axis. I don’t need 2 constraints. Well, now this problem is solved.