So I’m trying to make a part rotate using a joystick control that I made. The rotation part works fine and is accurate however when rotating the hinge (the part that rotates) moves to the center of the baseplate as can be seen in the video below. The forcefield also spawns in the center of the baseplate and not where the player does, so I’m not sure if that correlates to the problem.
No parts of the player model is even close to the forcefield so I’m not sure why the forcefield is spawning there.
Here’s the script that rotates the hinge, but I’m honestly very confused as to what could be going wrong.
Hinge.CFrame = CFrame.Angles(0, math.rad(Frame.Rotation * -1), 0) HingeBodyGyro.CFrame = Hinge.CFrame ObjectBodyGygro.CFrame = Hinge.CFrame end
If you have any ideas, suggestions, comments or questions please leave a reply.
Thanks for reading and have a great day!