The script isn't working without the tool when I clearly made it so it didn't need the tool. Here is the script;

Cooldown = false
function onButton1Down(mouse)
local De = script.Parent.Parent.Parent.Character:FindFirstChild("Turret1")
turn = true
	while turn == true do
		if De.Turret.Device.Weapon.Gyro ~= nil then
			De.Turret.Device.Weapon.Gyro.BodyGyro.cframe = mouse.Hit
		end
	wait(0.1)
	end
end

function onButton1Up()
	turn = false
end



function onSelect(mouse)
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
	mouse.Button1Up:connect(onButton1Up)
end