Tween rotation in wrong directoin

Im trying to make a tool that when activated spins upside down and when activated spins back to its normal rotation, but the tween is moving the part in the wrong direction and it doesnt spin in a full circle but rather spins upside down and spins back to normal via the way it spun upside down.

Video:


Script:

local tool = script.Parent
local ts = game:GetService("TweenService")
local speed = tool.Handle.Sound.TimeLength
local deb = false
local tog = false
tool.Activated:Connect(function()
	if deb == false then
		deb = true
		if tog == false then
			tog = true
			local tween = ts:Create(script.Parent,TweenInfo.new(speed,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{Grip = CFrame.fromEulerAnglesXYZ(0,0,math.pi)})
			tween:Play()	
			tool.Handle.Sound:Play()
			wait(speed)
			tween:Pause()
			--script.Parent.Grip = CFrame.fromEulerAnglesXYZ(0,0,0)
			wait(0.3)
			deb = false
		else
			tog = false
			local tween = ts:Create(script.Parent,TweenInfo.new(speed,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{Grip = CFrame.fromEulerAnglesXYZ(0,0,0)})
			tween:Play()	
			tool.Handle.Sound:Play()
			wait(speed)
			tween:Pause()
			--script.Parent.Grip = CFrame.fromEulerAnglesXYZ(0,0,0)
			wait(0.3)
			deb = false
			end
	end
end)

just teleported it top side up and then tweened it again to get the illusion of it making a full circle

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.