--Make the part move left and right

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