Need some help with CFrame object not rotating right

Basicly what can i do so it wont be like this and be as it was before i sit on the seat

so the issue is that how do i do so it wont be like this so it will be how it was before i sit on the seat but it can still rotate around?
Video on whats wrong:
https://gyazo.com/00d83664f5b0f23728fd0c37b9cbd546

have tried with playing around with mouse but cant get it to work

The code:

Mouse.Move:Connect(function()
	if CanShoot == true then
		local Pos = Mouse.Hit.Position
		S.Parent.Parent.RotationPart.CFrame = CFrame.new(S.Parent.Parent.RotationPart.CFrame.Position,Pos)
---S is a seat i got to get the right part in the model
	end
end)

you may use CFrame.Angles() to rotate the part

https://developer.roblox.com/en-us/recipes/Rotate-a-Part-Using-Degrees
see the part with CFrame.Angles()

1 Like

Thank u it worked didnt think of that

2 Likes