So, i’ll be pretty straight forwards, im making new tanks for my old game, and i need help fixing it, i’ve never really worked with tanks before, so its new to me.
The script works, it just acts weird,
The turret does not rotate all the way to the mouse, and even goes the opposite way.
The turret rotates instantly, and i want it to slowly rotate.
local ws = workspace local tank = ws["Tiger I"] local turret = tank:WaitForChild("Turret") local turretMain = turret.Main local barrelMain = turret.Main2 local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Move:Connect(function() turret:SetPrimaryPartCFrame(turret:GetPrimaryPartCFrame() * CFrame.fromEulerAnglesXYZ(0,mouse.X,0)) end)
a video demonstrating:
Thanks for any help!