How can I make it where when a hover effect on this model?

Here is what I tried I have a click detector and what I want to happen is when the click detector is hovered on then the model will move -3 studs on the zed axis. Then when I stop hovering it will move 3 studs on the zed axis back to their original position.

Heres what I tried doesn’t work I kinda overcomplicated it and I’m gonna feel stupid when I fix it;

local function tween_Information(chapter)
		local tweenInformation = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
		local partProperties = {CFrame = chapter.PrimaryPart.CFrame + Vector3.new(0,0,3)}
		local tween = tweenService:Create(chapter.PrimaryPart, tweenInformation, partProperties)

		local tweenInformation = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In)
		local partProperties = {CFrame = chapter.PrimaryPart.CFrame + Vector3.new(0,0,-3)}
		local tween2 = tweenService:Create(chapter.PrimaryPart, tweenInformation, partProperties)
		
		tween5 = tween
		tween10 = tween
		
		return tween5, tween10
	end
	
	local function hover(chapter)
		tween_Information(chapter)
		
		tween10:Pause()
		tween5:Play()
		
	end
	
	local function hover_End(chapter)
		tween_Information(chapter)

		tween5:Pause()
		tween10:Play()

	end
	
	workspace.Chapter1.Interactable.ClickDetector.MouseHoverEnter:Connect(function()
		if not debounce then
			debounce = true
			hover(workspace.Chapter1)
			debounce = false
		end
	end)
	
	workspace.Chapter1.Interactable.ClickDetector.MouseHoverLeave:Connect(function()
		if not debounce then
			debounce = true
			hover_End(workspace.Chapter1)
			debounce = false
		end
	end)

In tween_Information, I’m assuming tween10 was supposed to be tween2 instead of tween.

I made two tweens tween1 tween2 then I made two global variables local tween5 = nil local tween10 = nil then I set them equal to tween1 and tween2 tween5 = tween tween10 = tween2.

I think i may have worded my reply wrong or you’re misunderstanding it. You set tween10 as tween and not tween2 (tween10 = tween at line 11), which causes it do to the same tween as tween5.

Oh yeah your right this fixed my problem.