I’m currently working on a roblox naval battle game, but the turrets aren’t going so well. I’ve gotten the rotation working, but right now it breaks the ships, this is a video of what happens:
As you can see, the turret breaks because it’s CFrame is being changed. Is there anyway to prevent it from affecting the rest of the ship?
Scripts: ServerScript:
(Script removed because this is solved, and i don’t want people to copy it)
LocalScript:
(Script removed because this is solved, and i don’t want people to copy it)
It’s not the script. And yes, it is welded, i tried to use BallSockets but that dosen’t work either, it does what is shown in the video. I also fixed the while wait() do, thanks for telling me about that.
I’m not trying to make raycasting turrets, his turret is anchored, mine can’t as it’s a mobile ship. You can see the issue below:
The turret is lagging behind the hinge point, all i want is for it to work. Then i can make it better by making it not fall over like it is in the video.
I don’t exactly know how to do that, but it’s not going to do anything. This is setting the CFrame to point at the mouse, and setting the network owner to the player won’t help with stopping it from lagging behind.