local function Y()local Y=3 local s=1 while true do wait(.1)if parentPart.Position.X>5 then s=-1 elseif parentPart.Position.X<-5 then s=1 end parentPart.Position+=Vector3.new(Y*s,0,0)end end

local function movePart()
	local speed = 3
	local direction = 1
	
	while true do
		wait(0.1)
		
		if parentPart.Position.X > 5 then
			direction = -1
		elseif parentPart.Position.X < -5 then
			direction = 1
		end
		
		parentPart.Position += Vector3.new(speed * direction, 0, 0)
	end	
end