--This module is for any client FX related to the Double Tap Machine


local PowerBoxFX = {}

local tweenService = game:GetService("TweenService")

function PowerBoxFX.POWER_ON(powerBox)
	if not powerBox then return end
	local switchModel = powerBox:FindFirstChild("Switch")
	if not switchModel then return end
	
	local handle = switchModel.Handle
	
	local midPos = switchModel.Mid
	local topPos = switchModel.Up
	
	tweenService:Create(handle, TweenInfo.new(0.1), {CFrame = midPos.CFrame}):Play()
	wait(0.11)
	tweenService:Create(handle, TweenInfo.new(0.1), {CFrame = topPos.CFrame}):Play()
	
end

return PowerBoxFX
